4#include "../Utilities/clue.hpp"
46 virtual void forward(Eigen::MatrixXd &out,
const Eigen::MatrixXd &x) = 0;
54 virtual void backward(Eigen::MatrixXd &out,
const Eigen::MatrixXd &dx) = 0;
Base class for all layers.
Definition Layer.hpp:23
Layer(LayerType type)
Construct a new Layer object.
Definition Layer.hpp:33
virtual ~Layer()=default
Basic destructor.
virtual void forward(Eigen::MatrixXd &out, const Eigen::MatrixXd &x)=0
Forward pass of the layer.
LayerType type
Definition Layer.hpp:25
virtual void backward(Eigen::MatrixXd &out, const Eigen::MatrixXd &dx)=0
Backward pass of the layer.
Definition Activation.hpp:6
LayerType
Enum class for layer types.
Definition Layer.hpp:12