On this page
torch.nn.functional.dropout1d
torch.nn.functional.dropout1d(input, p=0.5, training=True, inplace=False)
[source]-
Randomly zero out entire channels (a channel is a 1D feature map, e.g., the -th channel of the -th sample in the batched input is a 1D tensor ) of the input tensor). Each channel will be zeroed out independently on every forward call with probability
p
using samples from a Bernoulli distribution.See
Dropout1d
for 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.dropout1d.html