# tensorplay.nn.functional.threshold

Source: https://www.tensorplay.cn/docs/generated/tensorplay.nn.functional.threshold.html

# tensorplay.nn.functional.threshold

tensorplay.nn.functional.threshold(input: TensorBase, threshold: [float](https://docs.python.org/3/library/functions.html#float), value: [float](https://docs.python.org/3/library/functions.html#float), inplace: [bool](https://docs.python.org/3/library/functions.html#bool) = False) &#x2192; TensorBase[[source]](../_modules/tensorplay/nn/functional.html#threshold)

Apply a threshold to each element of the input Tensor.

See Threshold for more details.
