|
My Project
|
Fully-connected layer with activation. More...
#include <layer.hpp>


Public Member Functions | |
| DenseLayer () | |
| int | getInSize () const override |
| Input dimension. More... | |
| int | getOutSize () const override |
| Output dimension. More... | |
| int | getParamsSize () const override |
| Parameter count. More... | |
| void | bind (double *params, double *grads) override |
| Bind parameter and gradient storage. More... | |
| void | forward (const Eigen::MatrixXd &input, Eigen::MatrixXd &output) override |
| Forward pass for a batch. More... | |
| void | backward (const Eigen::MatrixXd &next_grad, Eigen::MatrixXd *prev_grad) override |
| Backward pass for a batch. More... | |
| double | getInitStdDev () const override |
| Initialization scale. More... | |
Public Member Functions inherited from cpu_mlp::Layer | |
| virtual | ~Layer ()=default |
Fully-connected layer with activation.
|
inline |
|
inlineoverridevirtual |
Backward pass for a batch.
Implements cpu_mlp::Layer.
|
inlineoverridevirtual |
Bind parameter and gradient storage.
Implements cpu_mlp::Layer.
|
inlineoverridevirtual |
Forward pass for a batch.
Implements cpu_mlp::Layer.
|
inlineoverridevirtual |
Initialization scale.
Implements cpu_mlp::Layer.
|
inlineoverridevirtual |
Input dimension.
Implements cpu_mlp::Layer.
|
inlineoverridevirtual |
Output dimension.
Implements cpu_mlp::Layer.
|
inlineoverridevirtual |
Parameter count.
Implements cpu_mlp::Layer.