8 #ifndef INITWEIGHTS_HPP_ 9 #define INITWEIGHTS_HPP_ 11 #include "columns/BaseObject.hpp" 12 #include "components/WeightsPair.hpp" 13 #include "layers/HyPerLayer.hpp" 81 int initialize(
const char *name,
HyPerCol *hc);
82 void handleObsoleteFlag(std::string
const &flagName);
84 virtual void setObjectType()
override;
86 virtual Response::Status
87 communicateInitInfo(std::shared_ptr<CommunicateInitInfoMessage const> message)
override;
95 virtual Response::Status initializeState()
override;
108 virtual void calcWeights(
int dataPatchIndex,
int arborId);
110 virtual int readWeights(
const char *filename,
int frameNumber,
double *timestampPtr =
nullptr);
112 virtual int initRNGs(
bool isKernel) {
return PV_SUCCESS; }
115 dataIndexToUnitCellIndex(
int dataIndex,
int *kx =
nullptr,
int *ky =
nullptr,
int *kf =
nullptr);
116 int kernelIndexCalculations(
int patchIndex);
117 float calcYDelta(
int jPost);
118 float calcXDelta(
int iPost);
119 float calcDelta(
int post,
float dPost,
float distHeadPreUnits);
124 char *mWeightInitTypeString =
nullptr;
126 char *mFilename =
nullptr;
127 int mFrameNumber = 0;
130 float mXDistHeadPreUnits;
131 float mYDistHeadPreUnits;
virtual void ioParam_initWeightsFile(enum ParamsIOFlag ioFlag)
initWeightsFile: A path to a weight pvp file to use for initializing the weights, which overrides the...
virtual void ioParam_weightInitType(enum ParamsIOFlag ioFlag)
weightInitType: Specifies the type of weight initialization.
virtual void ioParam_numWeightFiles(enum ParamsIOFlag ioFlag)
numWeightFiles is obsolete.
virtual void ioParam_useListOfArborFiles(enum ParamsIOFlag ioFlag)
useListOfArborFiles is obsolete.
virtual void ioParam_frameNumber(enum ParamsIOFlag ioFlag)
frameNumber: If initWeightsFile is set, the frameNumber parameter selects which frame of the pvp file...
virtual void calcWeights()
virtual int ioParamsFillGroup(enum ParamsIOFlag ioFlag) override
virtual void ioParam_combineWeightFiles(enum ParamsIOFlag ioFlag)
combineWeightFiles is obsolete.