PetaVision  Alpha
TransposeWeightsPair.hpp
1 /*
2  * TransposeWeightsPair.hpp
3  *
4  * Created on: Dec 3, 2017
5  * Author: Pete Schultz
6  */
7 
8 #ifndef TRANSPOSEWEIGHTSPAIR_HPP_
9 #define TRANSPOSEWEIGHTSPAIR_HPP_
10 
11 #include "components/WeightsPair.hpp"
12 #include "connections/HyPerConn.hpp"
13 
14 namespace PV {
15 
17  protected:
28  virtual void ioParam_writeCompressedCheckpoints(enum ParamsIOFlag ioFlag) override;
29  // end of TransposeWeightsPair parameters
31 
32  public:
33  TransposeWeightsPair(char const *name, HyPerCol *hc);
34 
35  virtual ~TransposeWeightsPair();
36 
37  protected:
39 
40  int initialize(char const *name, HyPerCol *hc);
41 
42  virtual void setObjectType() override;
43 
44  int ioParamsFillGroup(enum ParamsIOFlag ioFlag) override;
45 
46  virtual Response::Status
47  communicateInitInfo(std::shared_ptr<CommunicateInitInfoMessage const> message) override;
48 
49  virtual void createPreWeights(std::string const &weightsName) override;
50  virtual void createPostWeights(std::string const &weightsName) override;
51 
52  virtual Response::Status allocateDataStructures() override;
53 
54  virtual Response::Status registerData(Checkpointer *checkpointer) override;
55 
56  virtual void finalizeUpdate(double timestamp, double deltaTime) override;
57 
58  protected:
59  HyPerConn *mOriginalConn = nullptr;
60  WeightsPair *mOriginalWeightsPair = nullptr;
61 };
62 
63 } // namespace PV
64 
65 #endif // TRANSPOSEWEIGHTSPAIR_HPP_
virtual void createPostWeights(std::string const &weightsName) override
virtual void ioParam_writeCompressedCheckpoints(enum ParamsIOFlag ioFlag) override
writeStep: TransposeWeightsPair does not checkpoint, so writeCompressedCheckpoints is always set to f...
int ioParamsFillGroup(enum ParamsIOFlag ioFlag) override
virtual void createPreWeights(std::string const &weightsName) override