dropout¶
dragon.vm.torch.nn.functional.
dropout
(
input,
p=0.5,
training=True,
inplace=False
)[source]¶Set the elements of the input to zero randomly. [Srivastava et.al, 2014].
- Parameters:
- input (dragon.vm.torch.Tensor) – The input tensor.
- p (float, optional, default=0.5) – The probability to zero an element.
- training (bool, optional, default=True) – Apply dropping if
True
. - inplace (bool, optional, default=False) – Whether to do the operation in-place.
- Returns:
dragon.vm.torch.Tensor – The output tensor.
See also