13 #ifndef MLPACK_METHODS_ANN_LAYER_CONCATENATE_HPP 14 #define MLPACK_METHODS_ANN_LAYER_CONCATENATE_HPP 33 typename InputDataType = arma::mat,
34 typename OutputDataType = arma::mat
64 void Forward(
const arma::Mat<eT>& input, arma::Mat<eT>& output);
77 const arma::Mat<eT>& gy,
81 OutputDataType
const&
Parameters()
const {
return weights; }
91 OutputDataType
const&
Delta()
const {
return delta; }
93 OutputDataType&
Delta() {
return delta; }
96 OutputDataType
const&
Concat()
const {
return concat; }
98 OutputDataType&
Concat() {
return concat; }
103 template<
typename Archive>
114 OutputDataType weights;
117 OutputDataType delta;
120 OutputDataType outputParameter;
123 OutputDataType concat;
OutputDataType const & Parameters() const
Get the parameters.
Definition: concatenate.hpp:81
Implementation of the Concatenate module class.
Definition: concatenate.hpp:36
Linear algebra utility functions, generally performed on matrices or vectors.
Definition: cv.hpp:1
OutputDataType & OutputParameter()
Modify the output parameter.
Definition: concatenate.hpp:88
The core includes that mlpack expects; standard C++ includes and Armadillo.
Concatenate()
Create the Concatenate object using the specified number of output units.
Definition: concatenate_impl.hpp:23
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: concatenate_impl.hpp:101
OutputDataType & Delta()
Modify the delta.
Definition: concatenate.hpp:93
OutputDataType const & Delta() const
Get the delta.
Definition: concatenate.hpp:91
void serialize(Archive &, const uint32_t)
Serialize the layer.
Definition: concatenate.hpp:104
OutputDataType & Parameters()
Modify the parameters.
Definition: concatenate.hpp:83
void Forward(const arma::Mat< eT > &input, arma::Mat< eT > &output)
Ordinary feed forward pass of a neural network, evaluating the function f(x) by propagating the activ...
Definition: concatenate_impl.hpp:83
Concatenate & operator=(const Concatenate &layer)
Operator= copy constructor.
Definition: concatenate_impl.hpp:53
OutputDataType const & Concat() const
Get the concat matrix.
Definition: concatenate.hpp:96
OutputDataType const & OutputParameter() const
Get the output parameter.
Definition: concatenate.hpp:86
OutputDataType & Concat()
Modify the concat.
Definition: concatenate.hpp:98