12 #ifndef MLPACK_METHODS_ANN_LAYER_PADDING_HPP    13 #define MLPACK_METHODS_ANN_LAYER_PADDING_HPP    31     typename InputDataType = arma::mat,
    32     typename OutputDataType = arma::mat
    47   Padding(
const size_t padWLeft = 0,
    48           const size_t padWRight = 0,
    49           const size_t padHTop = 0,
    50           const size_t padHBottom = 0,
    51           const size_t inputWidth = 0,
    52           const size_t inputHeight = 0);
    62   void Forward(
const arma::Mat<eT>& input, arma::Mat<eT>& output);
    75                 const arma::Mat<eT>& gy,
    84   OutputDataType 
const& 
Delta()
 const { 
return delta; }
    86   OutputDataType& 
Delta() { 
return delta; }
    99   size_t PadHTop()
 const { 
return padHTop; }
   131   template<
typename Archive>
   132   void serialize(Archive& ar, 
const uint32_t );
   166   arma::cube inputTemp;
   169   arma::cube outputTemp;
   172   OutputDataType delta;
   175   OutputDataType outputParameter;
   182 #include "padding_impl.hpp" size_t & InputWidth()
Modify the input width. 
 
size_t InputWidth() const
Get the input width. 
 
size_t OutputWidth() const
Get the output width. 
 
size_t PadHBottom() const
Get the bottom padding width. 
 
Linear algebra utility functions, generally performed on matrices or vectors. 
 
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...
 
size_t PadWRight() const
Get the right padding width. 
 
The core includes that mlpack expects; standard C++ includes and Armadillo. 
 
size_t & PadWLeft()
Modify the left padding width. 
 
size_t & PadHBottom()
Modify the bottom padding width. 
 
Padding(const size_t padWLeft=0, const size_t padWRight=0, const size_t padHTop=0, const size_t padHBottom=0, const size_t inputWidth=0, const size_t inputHeight=0)
Create the Padding object using the specified number of output units. 
 
size_t InputHeight() const
Get the input height. 
 
void serialize(Archive &ar, const uint32_t)
Serialize the layer. 
 
OutputDataType const  & OutputParameter() const
Get the output parameter. 
 
OutputDataType const  & Delta() const
Get the delta. 
 
size_t OutputHeight() const
Get the output height. 
 
OutputDataType & OutputParameter()
Modify the output parameter. 
 
size_t PadHTop() const
Get the top padding width. 
 
size_t & OutputHeight()
Modify the output height. 
 
size_t & InputHeight()
Modify the input height. 
 
size_t PadWLeft() const
Get the left padding width. 
 
size_t & OutputWidth()
Modify the output width. 
 
size_t & PadHTop()
Modify the top padding width. 
 
OutputDataType & Delta()
Modify the delta. 
 
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...
 
size_t & PadWRight()
Modify the right padding width.