latest (dev)
Copy
Latest development documentation · Updated 2026-10-15
tensorplay.functional.positive
- tensorplay.functional.positive(input) Tensor[source]
Returns
input. Throws a runtime error ifinputis a bool tensor.- Parameters:
input (Tensor) – the input tensor.
Example:
>>> t = tensorplay.randn(5) >>> t tensor([ 0.0090, -0.2262, -0.0682, -0.2866, 0.3940]) >>> tensorplay.positive(t) tensor([ 0.0090, -0.2262, -0.0682, -0.2866, 0.3940])
Help improve this page
Found an error, an unclear step, or a missing example?
Was this page helpful?

