.forward()
Apply dropout to the input.
In eval mode (or when p=0), the input passes through unchanged.
The random mask is generated at realize time, so this method is
compatible with lazy execution mode.
Parameters:
-
x(Tensor) –Input tensor.