Class DropoutImpl¶
Defined in File dropout.h
Page Contents
Inheritance Relationships¶
Base Type¶
public torch::nn::detail::_DropoutNd< DropoutImpl >
(Template Class _DropoutNd)
Class Documentation¶
-
class DropoutImpl : public torch::nn::detail::_DropoutNd<DropoutImpl>¶
Applies dropout over a 1-D input.
See https://pytorch.org/docs/main/nn.html#torch.nn.Dropout to learn about the exact behavior of this module.
See the documentation for
torch::nn::DropoutOptions
class to learn what constructor arguments are supported for this module.Example:
Dropout model(DropoutOptions().p(0.42).inplace(true));