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