PetaVision  Alpha
SharedWeights.hpp
1 /*
2  * SharedWeights.hpp
3  *
4  * Created on: Jan 5, 2018
5  * Author: Pete Schultz
6  */
7 
8 #ifndef SHAREDWEIGHTS_HPP_
9 #define SHAREDWEIGHTS_HPP_
10 
11 #include "columns/BaseObject.hpp"
12 
13 namespace PV {
14 
20 class SharedWeights : public BaseObject {
21  protected:
32  virtual void ioParam_sharedWeights(enum ParamsIOFlag ioFlag);
33  // end of SharedWeights parameters
35 
36  public:
37  SharedWeights(char const *name, HyPerCol *hc);
38 
39  virtual ~SharedWeights();
40 
41  bool getSharedWeights() const { return mSharedWeights; }
42 
43  protected:
44  SharedWeights() {}
45 
46  int initialize(char const *name, HyPerCol *hc);
47 
48  virtual void setObjectType() override;
49 
50  int ioParamsFillGroup(enum ParamsIOFlag ioFlag) override;
51 
52  protected:
53  bool mSharedWeights = true;
54 };
55 
56 } // namespace PV
57 
58 #endif // SHAREDWEIGHTS_HPP_
int ioParamsFillGroup(enum ParamsIOFlag ioFlag) override
virtual void ioParam_sharedWeights(enum ParamsIOFlag ioFlag)
sharedWeights: Boolean, defines if the weights use shared weights or not. Defaults to true (shared we...