8 #include "ImpliedWeightsPair.hpp" 9 #include "columns/HyPerCol.hpp" 10 #include "components/ImpliedWeights.hpp" 14 ImpliedWeightsPair::ImpliedWeightsPair(
char const *name, HyPerCol *hc) { initialize(name, hc); }
16 ImpliedWeightsPair::~ImpliedWeightsPair() {}
18 int ImpliedWeightsPair::initialize(
char const *name, HyPerCol *hc) {
19 return WeightsPairInterface::initialize(name, hc);
22 void ImpliedWeightsPair::setObjectType() { mObjectType =
"ImpliedWeightsPair"; }
25 pvAssert(mPreWeights ==
nullptr and mInitInfoCommunicatedFlag);
28 mPatchSize->getPatchSizeX(),
29 mPatchSize->getPatchSizeY(),
30 mPatchSize->getPatchSizeF(),
31 mConnectionData->
getPre()->getLayerLoc(),
32 mConnectionData->
getPost()->getLayerLoc(),
33 -std::numeric_limits<double>::infinity() );
37 pvAssert(mPostWeights ==
nullptr and mInitInfoCommunicatedFlag);
40 int nxpPre = mPatchSize->getPatchSizeX();
42 int nypPre = mPatchSize->getPatchSizeY();
51 -std::numeric_limits<double>::infinity() );
virtual void createPostWeights(std::string const &weightsName) override
virtual void createPreWeights(std::string const &weightsName) override
static int calcPostPatchSize(int prePatchSize, int numNeuronsPre, int numNeuronsPost)