12 #ifndef MLPACK_METHODS_ANN_LAYER_JOIN_HPP 13 #define MLPACK_METHODS_ANN_LAYER_JOIN_HPP 30 typename InputDataType = arma::mat,
31 typename OutputDataType = arma::mat
46 template<
typename InputType,
typename OutputType>
47 void Forward(
const InputType&& input, OutputType&& output);
59 void Backward(
const arma::Mat<eT>&& ,
81 template<
typename Archive>
82 void Serialize(Archive& ar,
const unsigned int );
105 #include "join_impl.hpp" OutputDataType & OutputParameter()
Modify the output parameter.
Linear algebra utility functions, generally performed on matrices or vectors.
OutputDataType outputParameter
Locally-stored output parameter object.
InputDataType const & InputParameter() const
Get the input parameter.
Join()
Create the Join object.
InputDataType inputParameter
Locally-stored input parameter object.
The core includes that mlpack expects; standard C++ includes and Armadillo.
void Backward(const arma::Mat< eT > &&, 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...
Implementation of the Join module class.
OutputDataType const & OutputParameter() const
Get the output parameter.
InputDataType & InputParameter()
Modify the input parameter.
OutputDataType const & Delta() const
Get the delta.
OutputDataType & Delta()
Modify the delta.
OutputDataType delta
Locally-stored delta 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...
size_t inSizeRows
Locally-stored number of input rows.
void Serialize(Archive &ar, const unsigned int)
Serialize the layer.
size_t inSizeCols
Locally-stored number of input cols.