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;
size_t & OutColSize()
Modify the column size of the output.
Definition: bilinear_interpolation.hpp:114
void serialize(Archive &ar, const uint32_t)
Serialize the layer.
Definition: bilinear_interpolation_impl.hpp:178
Linear algebra utility functions, generally performed on matrices or vectors.
Definition: cv.hpp:1
The core includes that mlpack expects; standard C++ includes and Armadillo.
OutputDataType & Delta()
Modify the delta.
Definition: bilinear_interpolation.hpp:94
size_t & InColSize()
Modify the column size of the input.
Definition: bilinear_interpolation.hpp:104
void Forward(const arma::Mat< eT > &input, arma::Mat< eT > &output)
Forward pass through the layer.
Definition: bilinear_interpolation_impl.hpp:56
BilinearInterpolation()
Create the Bilinear Interpolation object.
Definition: bilinear_interpolation_impl.hpp:25
OutputDataType const & Delta() const
Get the delta.
Definition: bilinear_interpolation.hpp:92
OutputDataType & OutputParameter()
Modify the output parameter.
Definition: bilinear_interpolation.hpp:89
size_t const & InRowSize() const
Get the row size of the input.
Definition: bilinear_interpolation.hpp:97
size_t const & InColSize() const
Get the column size of the input.
Definition: bilinear_interpolation.hpp:102
size_t InputShape() const
Get the shape of the input.
Definition: bilinear_interpolation.hpp:122
size_t & OutRowSize()
Modify the row size of the output.
Definition: bilinear_interpolation.hpp:109
size_t const & InDepth() const
Get the depth of the input.
Definition: bilinear_interpolation.hpp:117
size_t const & OutColSize() const
Get the column size of the output.
Definition: bilinear_interpolation.hpp:112
size_t & InRowSize()
Modify the row size of the input.
Definition: bilinear_interpolation.hpp:99
size_t const & OutRowSize() const
Get the row size of the output.
Definition: bilinear_interpolation.hpp:107
size_t & InDepth()
Modify the depth of the input.
Definition: bilinear_interpolation.hpp:119
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...
Definition: bilinear_interpolation_impl.hpp:116
OutputDataType const & OutputParameter() const
Get the output parameter.
Definition: bilinear_interpolation.hpp:87
Definition and Implementation of the Bilinear Interpolation Layer.
Definition: bilinear_interpolation.hpp:39