Rate this Page

Class AlphaDropoutImpl#

Inheritance Relationships#

Base Type#

Class Documentation#

class AlphaDropoutImpl : public torch::nn::detail::_DropoutNd<AlphaDropoutImpl>#

Applies Alpha Dropout over the input.

See https://pytorch.org/docs/main/nn.html#torch.nn.AlphaDropout to learn about the exact behavior of this module.

See the documentation for torch::nn::AlphaDropoutOptions class to learn what constructor arguments are supported for this module.

Example:

AlphaDropout model(AlphaDropoutOptions(0.2).inplace(true));

Public Functions

Tensor forward(const Tensor &input)#
virtual void pretty_print(std::ostream &stream) const override#

Pretty prints the AlphaDropout module into the given stream.