#include <Tanh.hpp>
|
| | Tanh () |
| |
| void | forward (Eigen::MatrixXd &out, const Eigen::MatrixXd &x) override |
| | Forward pass of the layer.
|
| |
| void | backward (Eigen::MatrixXd &out, const Eigen::MatrixXd &dx) override |
| | Backward pass of the layer.
|
| |
| | Activation (ActivationType activation_type) |
| | Construct a new Activation object.
|
| |
| | Layer (LayerType type) |
| | Construct a new Layer object.
|
| |
| virtual | ~Layer ()=default |
| | Basic destructor.
|
| |
| virtual void | forward (Eigen::MatrixXd &out, const Eigen::MatrixXd &x)=0 |
| | Forward pass of the layer.
|
| |
| virtual void | backward (Eigen::MatrixXd &out, const Eigen::MatrixXd &dx)=0 |
| | Backward pass of the layer.
|
| |
◆ Tanh()
◆ backward()
| void NNFS::Tanh::backward |
( |
Eigen::MatrixXd & |
out, |
|
|
const Eigen::MatrixXd & |
dx |
|
) |
| |
|
inlineoverridevirtual |
Backward pass of the layer.
- Parameters
-
| [out] | out | Input gradient |
| [in] | dx | Output gradient |
Implements NNFS::Layer.
◆ forward()
| void NNFS::Tanh::forward |
( |
Eigen::MatrixXd & |
out, |
|
|
const Eigen::MatrixXd & |
x |
|
) |
| |
|
inlineoverridevirtual |
Forward pass of the layer.
- Parameters
-
| [out] | out | Output data |
| [in] | x | Input data |
Implements NNFS::Layer.
The documentation for this class was generated from the following file: