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