Shortcuts

Class AlphaDropoutImpl

Inheritance Relationships

Base Type

Class Documentation

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

Applies Alpha Dropout over the input.

See https://pytorch.org/docs/master/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)
void pretty_print(std::ostream &stream) const override

Pretty prints the AlphaDropout module into the given stream.

Docs

Access comprehensive developer documentation for PyTorch

View Docs

Tutorials

Get in-depth tutorials for beginners and advanced developers

View Tutorials

Resources

Find development resources and get your questions answered

View Resources