latest (dev)
Copy
Latest development documentation · Updated 2026-10-15
tensorplay.functional.atan2
- tensorplay.functional.atan2(input: Tensor, other: Tensor, *, out: Tensor | None) Tensor[source]
Element-wise arctangent of with consideration of the quadrant. Returns a new tensor with the signed angles in radians between vector and vector . (Note that , the second parameter, is the x-coordinate, while , the first parameter, is the y-coordinate.)
The shapes of
inputandothermust be broadcastable.- Parameters:
- Keyword Arguments:
out (Tensor, optional) – the output tensor.
Example:
>>> a = tensorplay.randn(4) >>> a tensor([ 0.9041, 0.0196, -0.3108, -2.4423]) >>> tensorplay.atan2(a, tensorplay.randn(4)) tensor([ 0.9833, 0.0811, -1.9743, -1.4151])
Help improve this page
Found an error, an unclear step, or a missing example?
Was this page helpful?

