|
List of parameters needed from the InitVFromFile class
|
virtual void | ioParam_Vfilename (enum ParamsIOFlag ioFlag) |
| VFilename: The path to the file with the initial values. Relative paths are relative to the working directory.
|
|
virtual void | ioParam_frameNumber (enum ParamsIOFlag ioFlag) |
| frameNumber: selects which frame of the pvp file to use. The default value is zero. Note that this parameter is zero-indexed: for example, if a pvp file has five frames, the allowable values of this parameter are 0 through 4, inclusive. When batching, the batch element 0 loads the indicated frame, batch element 1 loads frameNumber + 1, etc. If the number of frames in the file is exhausted, the file wraps around to the beginning.
|
|
|
static string const | mDefaultInitV = "ConstantV" |
|
|
std::string | description |
|
PVCuda::CudaDevice * | mCudaDevice = nullptr |
|
bool | mDataStructuresAllocatedFlag = false |
|
bool | mInitialValuesSetFlag = false |
|
bool | mInitInfoCommunicatedFlag = false |
|
std::string | mObjectType |
|
bool | mUsingGPUFlag = false |
|
char * | name = nullptr |
|
HyPerCol * | parent = nullptr |
|
|
int | mFrameNumber = 0 |
|
char * | mVfilename = nullptr |
|
Definition at line 16 of file InitVFromFile.hpp.
bool PV::BaseObject::getDataStructuresAllocatedFlag |
( |
| ) |
const |
|
inlineinherited |
bool PV::BaseObject::getInitialValuesSetFlag |
( |
| ) |
const |
|
inlineinherited |
bool PV::BaseObject::getInitInfoCommunicatedFlag |
( |
| ) |
const |
|
inlineinherited |
void PV::BaseObject::ioParams |
( |
enum ParamsIOFlag |
ioFlag, |
|
|
bool |
printHeader, |
|
|
bool |
printFooter |
|
) |
| |
|
inherited |
Method for reading or writing the params from group in the parent HyPerCol's parameters. The group from params is selected using the name of the connection.
If ioFlag is set to write, the printHeader and printFooter flags control whether a header and footer for the parameter group is produces. These flags are set to true for layers, connections, and probes; and set to false for weight initializers and normalizers. If ioFlag is set to read, the printHeader and printFooter flags are ignored.
Note that ioParams is not virtual. To add parameters in a derived class, override ioParamFillGroup.
Definition at line 74 of file BaseObject.cpp.
int PV::InitVFromFile::ioParamsFillGroup |
( |
enum ParamsIOFlag |
ioFlag | ) |
|
|
overridevirtual |
The virtual method for reading parameters from the parent HyPerCol's parameters, and writing to the output params file.
Derived classes with additional parameters typically override ioParamsFillGroup to call the base class's ioParamsFillGroup method and then call ioParam_[parametername] for each of their parameters. The ioParam_[parametername] methods should call the parent HyPerCol's ioParamValue() and related methods, to ensure that all parameters that get read also get written to the outputParams-generated file.
Reimplemented from PV::BaseInitV.
Definition at line 29 of file InitVFromFile.cpp.
bool PV::BaseObject::isUsingGPU |
( |
| ) |
const |
|
inlineinherited |
Returns true if the object requires the GPU; false otherwise. HyPerCol will not initialize the GPU unless one of the objects in its hierarchy returns true
Definition at line 116 of file BaseObject.hpp.
char const * PV::BaseObject::lookupKeyword |
( |
| ) |
const |
|
inherited |
Look up the keyword of the params group with the same name as the object.
Definition at line 42 of file BaseObject.cpp.
void PV::BaseObject::readParams |
( |
| ) |
|
|
inlineinherited |
A method that reads the parameters for the group whose name matches the name of the object. It, along with writeParams(), is a wrapper around ioParams, so that readParams and writeParams automatically run through the same parameters in the same order.
Definition at line 62 of file BaseObject.hpp.
void PV::BaseObject::setDataStructuresAllocatedFlag |
( |
| ) |
|
|
inlineprotectedinherited |
This method sets mDataStructuresAllocatedFlag to true.
Definition at line 175 of file BaseObject.hpp.
void PV::BaseObject::setInitialValuesSetFlag |
( |
| ) |
|
|
inlineprotectedinherited |
This method sets the flag returned by getInitialValuesSetFlag to true.
Definition at line 180 of file BaseObject.hpp.
void PV::BaseObject::setInitInfoCommunicatedFlag |
( |
| ) |
|
|
inlineprotectedinherited |
This method sets mInitInfoCommunicatedFlag to true.
Definition at line 170 of file BaseObject.hpp.
void PV::BaseObject::writeParams |
( |
| ) |
|
|
inlineinherited |
A method that writes the parameters for the group whose name matches the name of the object. It, along with readParams(), is a wrapper around ioParams, so that readParams and writeParams automatically run through the same parameters in the same order.
Definition at line 69 of file BaseObject.hpp.
The documentation for this class was generated from the following files: