A single layer within the neural net.
More...
Inherited by ConvolutionalLayer, 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::getResults |
( |
| ) |
|
|
pure virtual |
virtual publicapi int Layer::getPersistSize |
( |
| ) |
const |
|
pure virtual |
Get the size of array needed for persisting to/from an array.
- Public API
virtual publicapi int Layer::getResultsSize |
( |
| ) |
const |
|
pure virtual |
Get the size of the activated output from this layer.
- Public API
publicapi VIRTUAL void Layer::setTraining |
( |
bool |
training | ) |
|
Are we training or predicting? Only affects the Random translations and patches layers currently.
- Public API
publicapi VIRTUAL void Layer::setBatchSize |
( |
int |
batchSize | ) |
|
used to set up internal buffers and stuff
- Public API
publicapi VIRTUAL bool Layer::getBiased |
( |
| ) |
const |
publicapi VIRTUAL bool Layer::hasResultsWrapper |
( |
| ) |
const |
publicapi VIRTUAL CLWrapper * Layer::getResultsWrapper |
( |
| ) |
|
publicapi VIRTUAL ActivationFunction const * Layer::getActivationFunction |
( |
| ) |
|
publicapi VIRTUAL int Layer::getOutputCubeSize |
( |
| ) |
const |
publicapi VIRTUAL int Layer::getOutputPlanes |
( |
| ) |
const |
publicapi VIRTUAL int Layer::getOutputImageSize |
( |
| ) |
const |
publicapi VIRTUAL void Layer::backProp |
( |
float |
learningRate | ) |
|
publicapi VIRTUAL int Layer::getWeightsSize |
( |
| ) |
const |
publicapi VIRTUAL int Layer::getBiasWeightsSize |
( |
| ) |
const |
publicapi VIRTUAL void Layer::persistToArray |
( |
float * |
array | ) |
|
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 | ) |
|
initialize the current weights and biases from array
- Public API
publicapi VIRTUAL std::string Layer::asString |
( |
| ) |
const |
Get a string representation of the layer.
- Public API
The documentation for this class was generated from the following files: