API symbolsnnCopyCopy as MarkdownCopy page linkView MarkdownDownload .mdOpenAIOpen in ChatGPTClaudeOpen in ClaudePerplexityOpen in PerplexityGrokOpen in Grok tensorplay.nn.functional.threshold tensorplay.nn.functional.threshold(input: TensorBase, threshold: float, value: float, inplace: bool = False) → TensorBase[source] Apply a threshold to each element of the input Tensor. See Threshold for more details. Help improve this pageFound an error, an unclear step, or a missing example?Was this page helpful?YesNoSuggest an editReport an issuetensorplay.nn.functional.tanhshrinkApplies element-wise, \(\text{Tanhshrink}(x) = x - \text{Tanh}(x)\)tensorplay.nn.functional.triplet_margin_lossCompute the triplet loss between given input tensors and a margin greater than 0.