12 #ifndef MLPACK_METHODS_ANN_LAYER_LOG_SOFTMAX_HPP 13 #define MLPACK_METHODS_ANN_LAYER_LOG_SOFTMAX_HPP 33 typename InputDataType = arma::mat,
34 typename OutputDataType = arma::mat
51 template<
typename InputType,
typename OutputType>
52 void Forward(
const InputType&& input, OutputType&& output);
64 void Backward(
const arma::Mat<eT>&& input,
86 template<
typename Archive>
87 void Serialize(Archive& ,
const unsigned int );
104 #include "log_softmax_impl.hpp" OutputDataType delta
Locally-stored delta object.
Implementation of the log softmax layer.
InputDataType inputParameter
Locally-stored input parameter object.
void Serialize(Archive &, const unsigned int)
Serialize the layer.
InputDataType & InputParameter() const
Get the input parameter.
Linear algebra utility functions, generally performed on matrices or vectors.
OutputDataType outputParameter
Locally-stored output parameter object.
void Forward(const InputType &&input, OutputType &&output)
Ordinary feed forward pass of a neural network, evaluating the function f(x) by propagating the activ...
The core includes that mlpack expects; standard C++ includes and Armadillo.
OutputDataType & OutputParameter() const
Get the output parameter.
InputDataType & Delta()
Modify the delta.
InputDataType & InputParameter()
Modify the input parameter.
void Backward(const arma::Mat< eT > &&input, arma::Mat< eT > &&gy, arma::Mat< eT > &&g)
Ordinary feed backward pass of a neural network, calculating the function f(x) by propagating x backw...
InputDataType & Delta() const
Get the delta.
OutputDataType & OutputParameter()
Modify the output parameter.
LogSoftMax()
Create the LogSoftmax object.