PetaVision  Alpha
SharedWeights.cpp
1 /*
2  * SharedWeights.cpp
3  *
4  * Created on: Jan 5, 2018
5  * Author: Pete Schultz
6  */
7 
8 #include "SharedWeights.hpp"
9 #include "columns/HyPerCol.hpp"
10 
11 namespace PV {
12 
13 SharedWeights::SharedWeights(char const *name, HyPerCol *hc) { initialize(name, hc); }
14 
15 SharedWeights::~SharedWeights() {}
16 
17 int SharedWeights::initialize(char const *name, HyPerCol *hc) {
18  return BaseObject::initialize(name, hc);
19 }
20 
21 void SharedWeights::setObjectType() { mObjectType = "SharedWeights"; }
22 
23 int SharedWeights::ioParamsFillGroup(enum ParamsIOFlag ioFlag) {
24  ioParam_sharedWeights(ioFlag);
25  return PV_SUCCESS;
26 }
27 
28 void SharedWeights::ioParam_sharedWeights(enum ParamsIOFlag ioFlag) {
29  parent->parameters()->ioParamValue(
30  ioFlag, name, "sharedWeights", &mSharedWeights, mSharedWeights);
31 }
32 
33 } // namespace PV
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...