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);
60 const arma::Mat<eT>& gy,
69 OutputDataType
const&
Delta()
const {
return delta; }
71 OutputDataType&
Delta() {
return delta; }
76 template<
typename Archive>
77 void serialize(Archive& ar,
const uint32_t );
90 OutputDataType outputParameter;
97 #include "join_impl.hpp" OutputDataType & OutputParameter()
Modify the output parameter.
Linear algebra utility functions, generally performed on matrices or vectors.
The core includes that mlpack expects; standard C++ includes and Armadillo.
void serialize(Archive &ar, const uint32_t)
Serialize the layer.
Implementation of the Join module class.
OutputDataType const & Delta() const
Get the delta.
Join()
Create the Join object.
OutputDataType const & OutputParameter() const
Get the output parameter.
void Backward(const arma::Mat< eT > &, const 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...
void Forward(const InputType &input, OutputType &output)
Ordinary feed forward pass of a neural network, evaluating the function f(x) by propagating the activ...
OutputDataType & Delta()
Modify the delta.