atan2¶
dragon.vm.torch.
atan2
(
input,
other,
out=None
)[source]¶Compute the element-wise arc-tangent of two arguments.
\[\text{out} = \text{arctan}(\frac{\text{input}}{\text{other}}) \]Examples:
y = torch.tensor(1.) x = torch.tensor(2.) print(torch.atan2(y, x)) # 0.46364761
- Parameters:
- input (dragon.vm.torch.Tensor) – The input tensor.
- other (Union[dragon.vm.torch.Tensor, number]) – The tensor to divide.
- out (dragon.vm.torch.Tensor, optional) – The output tensor.
- Returns:
dragon.vm.torch.Tensor – The output tensor.