Skip to main content

Dropout

Dropout(p=0.5, inplace=False)

Zero each element with probability ``p`` and scale the rest by
``1 / (1 - p)`` while the module is in training mode; in evaluation mode
the input passes through unchanged (the same tensor object).

forward​

forward(self, input: 'Tensor') -> 'Tensor'

forward(input) -> Tensor