Rate this Page

torch.nn.functional.threshold#

torch.nn.functional.threshold(input,threshold,value,inplace=False)[source]#

Apply a threshold to each element of the input Tensor.

SeeThreshold for more details.

Return type

Tensor