latest (dev)
Copy
Latest development documentation · Updated 2026-10-15
tensorplay.functional.hypot
- tensorplay.functional.hypot(input, other, *, out=None) Tensor[source]
Given the legs of a right triangle, return its hypotenuse.
The shapes of
inputandothermust be broadcastable.- Parameters:
- Keyword Arguments:
out (Tensor, optional) – the output tensor.
Example:
>>> a = tensorplay.hypot(tensorplay.tensor([4.0]), tensorplay.tensor([3.0, 4.0, 5.0])) tensor([5.0000, 5.6569, 6.4031])
Help improve this page
Found an error, an unclear step, or a missing example?
Was this page helpful?

