torch.atan
-
torch.atan(input: Tensor, *, out: Tensor | None) → Tensor -
Возвращает новый тензор, содержащий арктангенс элементов (в радианах) тензора
input.- Параметры:
-
input (Tensor) – входной тензор.
- Именованные аргументы:
-
out (Tensor, optional) – выходной тензор.
Пример:
>>> 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])
© 2026, PyTorch Contributors
PyTorch has a BSD-style license, as found in the LICENSE file.
https://docs.pytorch.org/docs/2.14/generated/torch.atan.html