Dropout#
- class myoverse.transforms.Dropout(p=0.1, dim=None, **kwargs)[source]#
Randomly zero out elements.
- Parameters:
Examples
>>> x = torch.randn(64, 2048, device='cuda', names=('channel', 'time')) >>> # Element-wise dropout >>> dropout = Dropout(p=0.1) >>> # Channel dropout (drop entire channels) >>> channel_dropout = Dropout(p=0.1, dim='channel')
Methods