latest (dev)
Copy
Latest development documentation · Updated 2026-10-15
tensorplay.functional.abs
- tensorplay.functional.abs(input: Tensor, *, out: Tensor | None) Tensor[source]
Computes the absolute value of each element in
input.- Parameters:
input (Tensor) – the input tensor.
- Keyword Arguments:
out (Tensor, optional) – the output tensor.
Example:
>>> tensorplay.abs(tensorplay.tensor([-1, -2, 3])) tensor([ 1, 2, 3])
Help improve this page
Found an error, an unclear step, or a missing example?
Was this page helpful?

