|
My Project
|
Abstract layer interface. More...
#include <layer.hpp>

Public Member Functions | |
| virtual | ~Layer ()=default |
| virtual void | bind (double *params, double *grads)=0 |
| Bind parameter and gradient storage. More... | |
| virtual void | forward (const Eigen::MatrixXd &input, Eigen::MatrixXd &output)=0 |
| Forward pass for a batch. More... | |
| virtual void | backward (const Eigen::MatrixXd &next_grad, Eigen::MatrixXd *prev_grad)=0 |
| Backward pass for a batch. More... | |
| virtual int | getInSize () const =0 |
| Input dimension. More... | |
| virtual int | getOutSize () const =0 |
| Output dimension. More... | |
| virtual int | getParamsSize () const =0 |
| Parameter count. More... | |
| virtual double | getInitStdDev () const =0 |
| Initialization scale. More... | |
Abstract layer interface.
|
virtualdefault |
|
pure virtual |
Backward pass for a batch.
Implemented in cpu_mlp::DenseLayer< In, Out, Activation >.
|
pure virtual |
Bind parameter and gradient storage.
Implemented in cpu_mlp::DenseLayer< In, Out, Activation >.
|
pure virtual |
Forward pass for a batch.
Implemented in cpu_mlp::DenseLayer< In, Out, Activation >.
|
pure virtual |
Initialization scale.
Implemented in cpu_mlp::DenseLayer< In, Out, Activation >.
|
pure virtual |
Input dimension.
Implemented in cpu_mlp::DenseLayer< In, Out, Activation >.
|
pure virtual |
Output dimension.
Implemented in cpu_mlp::DenseLayer< In, Out, Activation >.
|
pure virtual |
Parameter count.
Implemented in cpu_mlp::DenseLayer< In, Out, Activation >.