8 #include "PoolingIndexLayer.hpp" 9 #include "../layers/updateStateFunctions.h" 13 PoolingIndexLayer::PoolingIndexLayer() { initialize_base(); }
15 PoolingIndexLayer::PoolingIndexLayer(
const char *name, HyPerCol *hc) {
20 PoolingIndexLayer::~PoolingIndexLayer() {}
22 int PoolingIndexLayer::initialize_base() {
23 this->numChannels = 1;
27 int PoolingIndexLayer::initialize(
const char *name, HyPerCol *hc) {
31 assert(
sizeof(
int) ==
sizeof(
float));
32 assert(status == PV_SUCCESS);
41 void PoolingIndexLayer::ioParam_dataType(
enum ParamsIOFlag ioFlag) {
42 if (ioFlag == PARAMS_IO_READ) {
43 parent->parameters()->handleUnnecessaryParameter(name,
"dataType");
50 int PoolingIndexLayer::requireChannel(
int channelNeeded,
int *numChannelsResult) {
51 Fatal() <<
"PoolingIndexLayer cannot be a post layer\n";
56 int PoolingIndexLayer::resetGSynBuffers(
double timef,
double dt) {
virtual int ioParamsFillGroup(enum ParamsIOFlag ioFlag) override
int initialize(const char *name, HyPerCol *hc)
virtual int ioParamsFillGroup(enum ParamsIOFlag ioFlag) override