torch.nn.functional.threshold
- torch.nn.functional.threshold(input, threshold, value, inplace=False)
Apply a threshold to each element of the input Tensor.
See
Thresholdfor more details.- Return type
Apply a threshold to each element of the input Tensor.
See Threshold for more details.