dropout2d(input, p=0.5, training=True, inplace=False)¶
Randomly zero out entire channels (a channel is a 2D feature map, e.g., the -th channel of the -th sample in the batched input is a 2D tensor ) of the input tensor). Each channel will be zeroed out independently on every forward call with probability
pusing samples from a Bernoulli distribution.
p – probability of a channel to be zeroed. Default: 0.5
training – apply dropout if is
inplace – If set to
True, will do this operation in-place. Default: