8 #include "GapLayer.hpp" 9 #include "HyPerLayer.hpp" 13 GapLayer::GapLayer() { initialize_base(); }
15 GapLayer::GapLayer(
const char *name, HyPerCol *hc) {
20 GapLayer::~GapLayer() {}
22 int GapLayer::initialize_base() {
27 int GapLayer::initialize(
const char *name, HyPerCol *hc) {
28 int status_init = CloneVLayer::initialize(name, hc);
29 assert(originalLayerName != NULL);
36 ioParam_ampSpikelet(ioFlag);
40 void GapLayer::ioParam_ampSpikelet(
enum ParamsIOFlag ioFlag) {
41 parent->parameters()->ioParamValue(ioFlag, name,
"ampSpikelet", &Spikelet, ampSpikelet);
45 GapLayer::communicateInitInfo(std::shared_ptr<CommunicateInitInfoMessage const> message) {
46 return CloneVLayer::communicateInitInfo(message);
50 Response::Status GapLayer::allocateDataStructures() {
51 return CloneVLayer::allocateDataStructures();
54 Response::Status GapLayer::updateState(
double timef,
double dt) {
60 getCLayer()->activity->data,
62 originalLayer->getCLayer()->activity->data);
63 return Response::SUCCESS;
66 void GapLayer::updateState(
76 int num_neurons = nx * ny * nf;
77 int nbatch = loc->nbatch;
91 originalLayer->getLayerLoc()->halo.lt,
92 originalLayer->getLayerLoc()->halo.rt,
93 originalLayer->getLayerLoc()->halo.dn,
94 originalLayer->getLayerLoc()->halo.up,
99 int GapLayer::setActivity() {
101 return setActivity_GapLayer(
104 getCLayer()->activity->data,
113 originalLayer->getLayerLoc()->halo.lt,
114 originalLayer->getLayerLoc()->halo.rt,
115 originalLayer->getLayerLoc()->halo.dn,
116 originalLayer->getLayerLoc()->halo.up,
117 getCLayer()->activity->data,
virtual int ioParamsFillGroup(enum ParamsIOFlag ioFlag) override
virtual int ioParamsFillGroup(enum ParamsIOFlag ioFlag) override