A single layer within the neural net.
More...
Inherited by ActivationLayer, ConvolutionalLayer, DropoutLayer, ForceBackpropLayer, FullyConnectedLayer, InputLayer, LossLayer, NormalizationLayer, PoolingLayer, RandomPatches, and RandomTranslations.
A single layer within the neural net.
- Public API
publicapi Layer::Layer |
( |
Layer * |
previousLayer, |
|
|
LayerMaker2 * |
maker |
|
) |
| |
virtual publicapi float* Layer::getOutput |
( |
| ) |
|
|
pure virtual |
virtual publicapi int Layer::getPersistSize |
( |
int |
version | ) |
const |
|
pure virtual |
Get the size of array needed for persisting to/from an array.
- Public API
virtual publicapi int Layer::getOutputNumElements |
( |
| ) |
const |
|
pure virtual |
Get the size of the activated output from this layer.
- Public API
publicapi VIRTUAL void Layer::setTraining |
( |
bool |
training | ) |
|
|
virtual |
Are we training or predicting? Only affects the Random translations and patches layers currently.
- Public API
publicapi VIRTUAL void Layer::setBatchSize |
( |
int |
batchSize | ) |
|
|
virtual |
used to set up internal buffers and stuff
- Public API
publicapi VIRTUAL bool Layer::getBiased |
( |
| ) |
const |
|
virtual |
publicapi VIRTUAL bool Layer::hasOutputWrapper |
( |
| ) |
const |
|
virtual |
publicapi VIRTUAL CLWrapper * Layer::getOutputWrapper |
( |
| ) |
|
|
virtual |
publicapi VIRTUAL int Layer::getOutputCubeSize |
( |
| ) |
const |
|
virtual |
publicapi VIRTUAL int Layer::getOutputPlanes |
( |
| ) |
const |
|
virtual |
publicapi VIRTUAL int Layer::getOutputSize |
( |
| ) |
const |
|
virtual |
publicapi VIRTUAL void Layer::backward |
( |
| ) |
|
|
virtual |
publicapi VIRTUAL int Layer::getWeightsSize |
( |
| ) |
const |
|
virtual |
publicapi VIRTUAL int Layer::getBiasSize |
( |
| ) |
const |
|
virtual |
publicapi VIRTUAL int Layer::getPersistSize |
( |
| ) |
const |
|
virtual |
publicapi VIRTUAL void Layer::persistToArray |
( |
float * |
array | ) |
|
|
virtual |
publicapi VIRTUAL void Layer::persistToArray |
( |
int |
version, |
|
|
float * |
array |
|
) |
| |
|
virtual |
store the current weights and biases to array Note that you need to allocate array first
- Public API
publicapi VIRTUAL void Layer::unpersistFromArray |
( |
float const * |
array | ) |
|
|
virtual |
publicapi VIRTUAL void Layer::unpersistFromArray |
( |
int |
version, |
|
|
float const * |
array |
|
) |
| |
|
virtual |
initialize the current weights and biases from array
- Public API
The documentation for this class was generated from the following files: