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;
OutputDataType & OutputParameter()
Modify the output parameter.
Definition: join.hpp:66
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...
Definition: join_impl.hpp:41
Linear algebra utility functions, generally performed on matrices or vectors.
Definition: cv.hpp:1
Join()
Create the Join object.
Definition: join_impl.hpp:22
The core includes that mlpack expects; standard C++ includes and Armadillo.
OutputDataType const & Delta() const
Get the delta.
Definition: join.hpp:69
Implementation of the Join module class.
Definition: join.hpp:33
OutputDataType & Delta()
Modify the delta.
Definition: join.hpp:71
OutputDataType const & OutputParameter() const
Get the output parameter.
Definition: join.hpp:64
void Forward(const InputType &input, OutputType &output)
Ordinary feed forward pass of a neural network, evaluating the function f(x) by propagating the activ...
Definition: join_impl.hpp:31
void serialize(Archive &ar, const uint32_t)
Serialize the layer.
Definition: join_impl.hpp:52