![]() |
Deepity
Ultra-fast, SIMD-accelerated Predictive Coding
|
A deepity layer virtual class. More...
#include <Layer.h>
Public Member Functions | |
| virtual | ~Layer ()=default |
| virtual float * | GetBeliefs () noexcept=0 |
| Should return belief state z. | |
| virtual const float * | GetErrors () const noexcept=0 |
| Should return errors e. | |
| virtual size_t | GetInputSize () const noexcept=0 |
| Should return input size. | |
| virtual size_t | GetOutputSize () const noexcept=0 |
| Should return output size. | |
| virtual size_t | GetBatchSize () const noexcept=0 |
| Should return batch size. | |
| virtual float | CalculateState () noexcept=0 |
| Calculates the internal state of the layer. | |
| virtual void | UpdateState () noexcept=0 |
| Updates the states after calculation. | |
| virtual void | UpdateWeights () noexcept=0 |
| Updates the weights after state updates. | |
| virtual void | Flush () noexcept |
| Flushes remaining batches. | |
| virtual std::map< std::string, TensorDescriptor > | GetStateDict () const |
| Returns a dictionary of this. | |
Protected Attributes | |
| size_t | size |
| Size of input. | |
| size_t | nextSize |
| Size of output. | |
A deepity layer virtual class.
|
virtualdefault |
|
pure virtualnoexcept |
Calculates the internal state of the layer.
Implemented in Deep::ConvPCLayer, Deep::DirectKPPCLayer, Deep::DiscriminativePCLayer, Deep::FullPCLayer, Deep::GaussSeidelPCLayer, Deep::RBLayer, Deep::SimpleConvPCLayer, and Deep::SimplePCLayer.
|
inlinevirtualnoexcept |
Flushes remaining batches.
Reimplemented in Deep::ConvPCLayer, Deep::DiscriminativePCLayer, Deep::GaussSeidelPCLayer, Deep::RBLayer, Deep::SimpleConvPCLayer, and Deep::SimplePCLayer.
|
pure virtualnoexcept |
Should return batch size.
Implemented in Deep::ConvPCLayer, Deep::DirectKPPCLayer, Deep::DiscriminativePCLayer, Deep::FullPCLayer, Deep::GaussSeidelPCLayer, Deep::RBLayer, Deep::SimpleConvPCLayer, and Deep::SimplePCLayer.
|
pure virtualnoexcept |
Should return belief state z.
Implemented in Deep::ConvPCLayer, Deep::DirectKPPCLayer, Deep::DiscriminativePCLayer, Deep::FullPCLayer, Deep::GaussSeidelPCLayer, Deep::RBLayer, Deep::SimpleConvPCLayer, and Deep::SimplePCLayer.
|
pure virtualnoexcept |
Should return errors e.
Implemented in Deep::ConvPCLayer, Deep::DirectKPPCLayer, Deep::DiscriminativePCLayer, Deep::FullPCLayer, Deep::GaussSeidelPCLayer, Deep::RBLayer, Deep::SimpleConvPCLayer, and Deep::SimplePCLayer.
|
pure virtualnoexcept |
Should return input size.
Implemented in Deep::ConvPCLayer, Deep::DirectKPPCLayer, Deep::DiscriminativePCLayer, Deep::FullPCLayer, Deep::GaussSeidelPCLayer, Deep::RBLayer, Deep::SimpleConvPCLayer, and Deep::SimplePCLayer.
|
pure virtualnoexcept |
Should return output size.
Implemented in Deep::ConvPCLayer, Deep::DirectKPPCLayer, Deep::DiscriminativePCLayer, Deep::FullPCLayer, Deep::GaussSeidelPCLayer, Deep::RBLayer, Deep::SimpleConvPCLayer, and Deep::SimplePCLayer.
|
inlinevirtual |
Returns a dictionary of this.
Reimplemented in Deep::ConvPCLayer, Deep::DirectKPPCLayer, and Deep::FullPCLayer.
|
pure virtualnoexcept |
Updates the states after calculation.
Implemented in Deep::ConvPCLayer, Deep::DirectKPPCLayer, Deep::DiscriminativePCLayer, Deep::FullPCLayer, Deep::GaussSeidelPCLayer, Deep::RBLayer, Deep::SimpleConvPCLayer, and Deep::SimplePCLayer.
|
pure virtualnoexcept |
Updates the weights after state updates.
Implemented in Deep::ConvPCLayer, Deep::DirectKPPCLayer, Deep::DiscriminativePCLayer, Deep::FullPCLayer, Deep::GaussSeidelPCLayer, Deep::RBLayer, Deep::SimpleConvPCLayer, and Deep::SimplePCLayer.
|
protected |
Size of output.
|
protected |
Size of input.