3 #include <torch/nn/cloneable.h> 4 #include <torch/nn/pimpl.h> 5 #include <torch/types.h> 19 TORCH_ARG(
double, rate);
23 template <
typename Derived>
28 void reset()
override;
48 void pretty_print(std::ostream& stream)
const override;
70 void pretty_print(std::ostream& stream)
const override;
77 TORCH_MODULE(Dropout);
83 TORCH_MODULE(FeatureDropout);
DropoutOptions options
The options used to configure this Dropout module.
The clone() method in the base Module class does not have knowledge of the concrete runtime type of i...
Applies Dropout during training.
Options for Dropout and FeatureDropout.
Applies spatial Dropout to inputs with 2-D or 3-D features.