On this page
torch.nn.functional.dropout
torch.nn.functional.dropout(input, p=0.5, training=True, inplace=False)[source]-
During training, randomly zeroes some of the elements of the input tensor with probability
pusing samples from a Bernoulli distribution.See
Dropoutfor details.
© 2024, PyTorch Contributors
PyTorch has a BSD-style license, as found in the LICENSE file.
https://pytorch.org/docs/2.1/generated/torch.nn.functional.dropout.html