12 #ifndef MLPACK_METHODS_ANN_LAYER_JOIN_IMPL_HPP 13 #define MLPACK_METHODS_ANN_LAYER_JOIN_IMPL_HPP 21 template<
typename InputDataType,
typename OutputDataType>
29 template<
typename InputDataType,
typename OutputDataType>
30 template<
typename InputType,
typename OutputType>
32 const InputType& input, OutputType& output)
34 inSizeRows = input.n_rows;
35 inSizeCols = input.n_cols;
36 output = arma::vectorise(input);
39 template<
typename InputDataType,
typename OutputDataType>
42 const arma::Mat<eT>& ,
43 const arma::Mat<eT>& gy,
46 g = arma::mat(((arma::Mat<eT>&) gy).memptr(), inSizeRows, inSizeCols,
false,
50 template<
typename InputDataType,
typename OutputDataType>
51 template<
typename Archive>
56 ar(CEREAL_NVP(inSizeRows));
57 ar(CEREAL_NVP(inSizeCols));
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
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