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);
82 void Backward(
const arma::Mat<eT>&& ,
83 arma::Mat<eT>&& gradient,
84 arma::Mat<eT>&& output);
92 OutputDataType
const&
Delta()
const {
return delta; }
94 OutputDataType&
Delta() {
return delta; }
99 template<
typename Archive>
100 void serialize(Archive& ar,
const unsigned int );
116 OutputDataType delta;
118 OutputDataType outputParameter;
125 #include "bilinear_interpolation_impl.hpp" OutputDataType const & OutputParameter() const
Get the output parameter.
OutputDataType & Delta()
Modify the delta.
void Forward(const arma::Mat< eT > &&input, arma::Mat< eT > &&output)
Forward pass through the layer.
The core includes that mlpack expects; standard C++ includes and Armadillo.
void serialize(Archive &ar, const unsigned int)
Serialize the layer.
OutputDataType & OutputParameter()
Modify the output parameter.
OutputDataType const & Delta() const
Get the delta.
BilinearInterpolation()
Create the Bilinear Interpolation object.
Definition and Implementation of the Bilinear Interpolation Layer.
void Backward(const arma::Mat< eT > &&, 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...