The glimpse layer returns a retina-like representation (down-scaled cropped images) of increasing scale around a given location in a given image.
More...
|
| | Glimpse (const size_t inSize=0, const size_t size=0, const size_t depth=3, const size_t scale=2, const size_t inputWidth=0, const size_t inputHeight=0) |
| | Create the GlimpseLayer object using the specified ratio and rescale parameter. More...
|
| |
| template<typename eT > |
| void | Backward (const arma::Mat< eT > &&, arma::Mat< eT > &&gy, arma::Mat< eT > &&g) |
| | Ordinary feed backward pass of the glimpse layer. More...
|
| |
| OutputDataType & | Delta () const |
| | Get the detla. More...
|
| |
| OutputDataType & | Delta () |
| | Modify the delta. More...
|
| |
| bool | Deterministic () const |
| | Get the value of the deterministic parameter. More...
|
| |
| bool & | Deterministic () |
| | Modify the value of the deterministic parameter. More...
|
| |
| template<typename eT > |
| void | Forward (const arma::Mat< eT > &&input, arma::Mat< eT > &&output) |
| | Ordinary feed forward pass of the glimpse layer. More...
|
| |
| size_t const & | InputHeight () const |
| | Get the input height. More...
|
| |
| size_t & | InputHeight () |
| | Modify the input height. More...
|
| |
| size_t const & | InputWidth () const |
| | Get the input width. More...
|
| |
| size_t & | InputWidth () |
| | Modify input the width. More...
|
| |
| void | Location (const arma::mat &location) |
| | Set the locationthe x and y coordinate of the center of the output glimpse. More...
|
| |
| size_t const & | OutputHeight () const |
| | Get the output height. More...
|
| |
| size_t & | OutputHeight () |
| | Modify the output height. More...
|
| |
| OutputDataType & | OutputParameter () const |
| | Get the output parameter. More...
|
| |
| OutputDataType & | OutputParameter () |
| | Modify the output parameter. More...
|
| |
| size_t const & | OutputWidth () const |
| | Get the output width. More...
|
| |
| size_t & | OutputWidth () |
| | Modify the output width. More...
|
| |
| template<typename Archive > |
| void | serialize (Archive &ar, const unsigned int) |
| | Serialize the layer. More...
|
| |
template<typename InputDataType = arma::mat, typename OutputDataType = arma::mat>
class mlpack::ann::Glimpse< InputDataType, OutputDataType >
The glimpse layer returns a retina-like representation (down-scaled cropped images) of increasing scale around a given location in a given image.
- Template Parameters
-
| InputDataType | Type of the input data (arma::colvec, arma::mat, arma::sp_mat or arma::cube). |
| OutputDataType | Type of the output data (arma::colvec, arma::mat, arma::sp_mat or arma::cube). |
Definition at line 87 of file glimpse.hpp.
◆ Glimpse()
| Glimpse |
( |
const size_t |
inSize = 0, |
|
|
const size_t |
size = 0, |
|
|
const size_t |
depth = 3, |
|
|
const size_t |
scale = 2, |
|
|
const size_t |
inputWidth = 0, |
|
|
const size_t |
inputHeight = 0 |
|
) |
| |
Create the GlimpseLayer object using the specified ratio and rescale parameter.
- Parameters
-
| inSize | The size of the input units. |
| size | The used glimpse size (height = width). |
| depth | The number of patches to crop per glimpse. |
| scale | The scaling factor used to create the increasing retina-like representation. |
| inputWidth | The input width of the given input data. |
| inputHeight | The input height of the given input data. |
◆ Backward()
| void Backward |
( |
const arma::Mat< eT > && |
, |
|
|
arma::Mat< eT > && |
gy, |
|
|
arma::Mat< eT > && |
g |
|
) |
| |
Ordinary feed backward pass of the glimpse layer.
- Parameters
-
| input | The propagated input activation. |
| gy | The backpropagated error. |
| g | The calculated gradient. |
◆ Delta() [1/2]
| OutputDataType& Delta |
( |
| ) |
const |
|
inline |
◆ Delta() [2/2]
| OutputDataType& Delta |
( |
| ) |
|
|
inline |
◆ Deterministic() [1/2]
| bool Deterministic |
( |
| ) |
const |
|
inline |
Get the value of the deterministic parameter.
Definition at line 168 of file glimpse.hpp.
◆ Deterministic() [2/2]
Modify the value of the deterministic parameter.
Definition at line 170 of file glimpse.hpp.
◆ Forward()
| void Forward |
( |
const arma::Mat< eT > && |
input, |
|
|
arma::Mat< eT > && |
output |
|
) |
| |
Ordinary feed forward pass of the glimpse layer.
- Parameters
-
| input | Input data used for evaluating the specified function. |
| output | Resulting output activation. |
◆ InputHeight() [1/2]
| size_t const& InputHeight |
( |
| ) |
const |
|
inline |
◆ InputHeight() [2/2]
◆ InputWidth() [1/2]
| size_t const& InputWidth |
( |
| ) |
const |
|
inline |
◆ InputWidth() [2/2]
◆ Location()
| void Location |
( |
const arma::mat & |
location | ) |
|
|
inline |
Set the locationthe x and y coordinate of the center of the output glimpse.
Definition at line 142 of file glimpse.hpp.
◆ OutputHeight() [1/2]
| size_t const& OutputHeight |
( |
| ) |
const |
|
inline |
◆ OutputHeight() [2/2]
◆ OutputParameter() [1/2]
| OutputDataType& OutputParameter |
( |
| ) |
const |
|
inline |
◆ OutputParameter() [2/2]
| OutputDataType& OutputParameter |
( |
| ) |
|
|
inline |
Modify the output parameter.
Definition at line 133 of file glimpse.hpp.
◆ OutputWidth() [1/2]
| size_t const& OutputWidth |
( |
| ) |
const |
|
inline |
◆ OutputWidth() [2/2]
◆ serialize()
| void serialize |
( |
Archive & |
ar, |
|
|
const unsigned |
int |
|
) |
| |
The documentation for this class was generated from the following file: