Threshold
Thresholds each element of the input Tensor.
nnf_threshold(input, threshold, value, inplace = FALSE) nnf_threshold_(input, threshold, value)
input
: (N,*) tensor, where * means, any number of additional dimensionsthreshold
: The value to threshold atvalue
: The value to replace withinplace
: can optionally do the operation in-place. Default: FALSEUseful links