atan2¶
dragon.math.
atan2
(
inputs,
**kwargs
)[source]¶Compute the element-wise arc-tangent of two arguments.
\[\text{out} = \text{arctan}(\frac{\text{input1}}{\text{input2}}) \]Examples:
y = dragon.constant(1) x = dragon.constant(2) print(dragon.math.atan2([y, x])) # 0.46364761
- Parameters:
- inputs (Sequence[dragon.Tensor]) – The input1 and input2 tensor.
- Returns:
dragon.Tensor – The output tensor.