Rate this Page
โ˜… โ˜… โ˜… โ˜… โ˜…

torch.atan#

torch.atan(input: Tensor, *, out: Optional[Tensor]) โ†’ Tensor#

Returns a new tensor with the arctangent of the elements of input.

outi=tanโกโˆ’1(inputi)\text{out}_{i} = \tan^{-1}(\text{input}_{i})
Parameters

input (Tensor) โ€“ the input tensor.

Keyword Arguments

out (Tensor, optional) โ€“ the output tensor.

Example:

>>> a = torch.randn(4)
>>> a
tensor([ 0.2341,  0.2539, -0.6256, -0.6448])
>>> torch.atan(a)
tensor([ 0.2299,  0.2487, -0.5591, -0.5727])