8 #ifndef WEIGHTSPAIR_HPP_ 9 #define WEIGHTSPAIR_HPP_ 11 #include "components/ArborList.hpp" 12 #include "components/SharedWeights.hpp" 13 #include "components/WeightsPairInterface.hpp" 25 virtual void ioParam_writeStep(
enum ParamsIOFlag ioFlag);
26 virtual void ioParam_initialWriteTime(
enum ParamsIOFlag ioFlag);
27 virtual void ioParam_writeCompressedWeights(
enum ParamsIOFlag ioFlag);
28 virtual void ioParam_writeCompressedCheckpoints(
enum ParamsIOFlag ioFlag);
44 virtual Response::Status respond(std::shared_ptr<BaseMessage const> message)
override;
46 Weights *getPreWeights() {
return mPreWeights; }
47 Weights *getPostWeights() {
return mPostWeights; }
49 bool getInitializeFromCheckpointFlag()
const {
return mInitializeFromCheckpointFlag; }
51 bool getWriteCompressedCheckpoints()
const {
return mWriteCompressedCheckpoints; }
53 ArborList const *getArborList()
const {
return mArborList; }
58 int initialize(
char const *name,
HyPerCol *hc);
60 virtual void setObjectType()
override;
65 respondConnectionFinalizeUpdate(std::shared_ptr<ConnectionFinalizeUpdateMessage const> message);
67 Response::Status respondConnectionOutput(std::shared_ptr<ConnectionOutputMessage const> message);
69 virtual Response::Status
70 communicateInitInfo(std::shared_ptr<CommunicateInitInfoMessage const> message)
override;
75 virtual void allocatePreWeights()
override;
77 virtual void allocatePostWeights()
override;
79 virtual Response::Status registerData(
Checkpointer *checkpointer)
override;
81 virtual Response::Status readStateFromCheckpoint(
Checkpointer *checkpointer)
override;
83 virtual void finalizeUpdate(
double timestamp,
double deltaTime);
87 virtual void outputState(
double timestamp);
90 double mWriteStep = 0.0;
91 double mInitialWriteTime = 0.0;
92 bool mWriteCompressedWeights =
false;
93 bool mWriteCompressedCheckpoints =
false;
97 bool mInitializeFromCheckpointFlag =
false;
101 double mWriteTime = 0.0;
108 #endif // WEIGHTSPAIR_HPP_
int ioParamsFillGroup(enum ParamsIOFlag ioFlag) override
virtual void ioParam_initializeFromCheckpointFlag(enum ParamsIOFlag ioFlag)
initializeFromCheckpointFlag: If set to true, initialize using checkpoint direcgtory set in HyPerCol...
virtual void createPreWeights(std::string const &weightsName) override
virtual void createPostWeights(std::string const &weightsName) override