11 #ifndef MLPACK_METHODS_ANN_LAYER_BILINEAR_INTERPOLATION_HPP    12 #define MLPACK_METHODS_ANN_LAYER_BILINEAR_INTERPOLATION_HPP    36     typename InputDataType = arma::mat,
    37     typename OutputDataType = arma::mat
    55                         const size_t inColSize,
    56                         const size_t outRowSize,
    57                         const size_t outColSize,
    68   void Forward(
const arma::Mat<eT>& input, arma::Mat<eT>& output);
    83                 const arma::Mat<eT>& gradient,
    84                 arma::Mat<eT>& output);
    92   OutputDataType 
const& 
Delta()
 const { 
return delta; }
    94   OutputDataType& 
Delta() { 
return delta; }
    97   size_t const& 
InRowSize()
 const { 
return inRowSize; }
   117   size_t const& 
InDepth()
 const { 
return depth; }
   130   template<
typename Archive>
   131   void serialize(Archive& ar, 
const uint32_t );
   147   OutputDataType delta;
   149   OutputDataType outputParameter;
   156 #include "bilinear_interpolation_impl.hpp" OutputDataType const  & OutputParameter() const
Get the output parameter. 
 
size_t const  & InRowSize() const
Get the row size of the input. 
 
Linear algebra utility functions, generally performed on matrices or vectors. 
 
size_t & InDepth()
Modify the depth of the input. 
 
OutputDataType & Delta()
Modify the delta. 
 
The core includes that mlpack expects; standard C++ includes and Armadillo. 
 
size_t const  & OutColSize() const
Get the column size of the output. 
 
size_t & OutColSize()
Modify the column size of the output. 
 
size_t & OutRowSize()
Modify the row size of the output. 
 
size_t InputShape() const
Get the shape of the input. 
 
size_t const  & InDepth() const
Get the depth of the input. 
 
void serialize(Archive &ar, const uint32_t)
Serialize the layer. 
 
OutputDataType & OutputParameter()
Modify the output parameter. 
 
void Forward(const arma::Mat< eT > &input, arma::Mat< eT > &output)
Forward pass through the layer. 
 
size_t & InColSize()
Modify the column size of the input. 
 
OutputDataType const  & Delta() const
Get the delta. 
 
size_t const  & OutRowSize() const
Get the row size of the output. 
 
void Backward(const arma::Mat< eT > &, const arma::Mat< eT > &gradient, arma::Mat< eT > &output)
Ordinary feed backward pass of a neural network, calculating the function f(x) by propagating x backw...
 
BilinearInterpolation()
Create the Bilinear Interpolation object. 
 
size_t & InRowSize()
Modify the row size of the input. 
 
Definition and Implementation of the Bilinear Interpolation Layer. 
 
size_t const  & InColSize() const
Get the column size of the input.