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;
   130 #include "concatenate_impl.hpp" Concatenate()
Create the Concatenate object using the specified number of output units. 
 
OutputDataType const  & Parameters() const
Get the parameters. 
 
Implementation of the Concatenate module class. 
 
void serialize(Archive &, const uint32_t)
Serialize the layer. 
 
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...
 
Linear algebra utility functions, generally performed on matrices or vectors. 
 
OutputDataType const  & OutputParameter() const
Get the output parameter. 
 
The core includes that mlpack expects; standard C++ includes and Armadillo. 
 
OutputDataType & Parameters()
Modify the parameters. 
 
OutputDataType const  & Concat() const
Get the concat matrix. 
 
Concatenate & operator=(const Concatenate &layer)
Operator= copy constructor. 
 
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...
 
OutputDataType & Concat()
Modify the concat. 
 
OutputDataType & OutputParameter()
Modify the output parameter. 
 
OutputDataType & Delta()
Modify the delta. 
 
OutputDataType const  & Delta() const
Get the delta.