|
| SpatialDropout () |
| Create the SpatialDropout object.
|
|
| SpatialDropout (const size_t size, const double ratio=0.5) |
| Create the SpatialDropout object using the specified parameters. More...
|
|
template<typename eT > |
void | Forward (const arma::Mat< eT > &input, arma::Mat< eT > &output) |
| Ordinary feed forward pass of the SpatialDropout layer. More...
|
|
template<typename eT > |
void | Backward (const arma::Mat< eT > &input, const arma::Mat< eT > &gy, arma::Mat< eT > &g) |
| Ordinary feed backward pass of the SpatialDropout layer. More...
|
|
OutputDataType const & | OutputParameter () const |
| Get the output parameter.
|
|
OutputDataType & | OutputParameter () |
| Modify the output parameter.
|
|
OutputDataType const & | Delta () const |
| Get the delta.
|
|
OutputDataType & | Delta () |
| Modify the delta.
|
|
size_t | Size () const |
| Get the number of channels.
|
|
size_t & | Size () |
| Modify the number of channels.
|
|
bool | Deterministic () const |
| Get the value of the deterministic parameter.
|
|
bool & | Deterministic () |
| Modify the value of the deterministic parameter.
|
|
double | Ratio () const |
| Get the probability value.
|
|
void | Ratio (const double r) |
| Modify the probability value.
|
|
template<typename Archive > |
void | serialize (Archive &ar, const uint32_t) |
| Serialize the layer.
|
|
template<typename InputDataType = arma::mat, typename OutputDataType = arma::mat>
class mlpack::ann::SpatialDropout< InputDataType, OutputDataType >
Implementation of the SpatialDropout layer.
For more information, refer to the following paper,
@article{Tompson15,
author = {Jonathan Tompson, Ross Goroshin, Arjun Jain,
Yann LeCun, Christopher Bregler},
title = {Efficient Object Localization Using Convolutional Networks},
journal = {CoRR},
volume = {abs/1411.4280},
year = {2015},
url = {https:
eprint = {1411.4280},
}
- 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). |