torch.sinh
-
torch.sinh(input, *, out=None) → Tensor -
Возвращает новый тензор с гиперболическим синусом элементов
input.- Параметры:
-
input (Tensor) – входной тензор.
- Именованные аргументы:
-
out (Tensor, optional) – выходной тензор.
Пример:
>>> a = torch.randn(4) >>> a tensor([ 0.5380, -0.8632, -0.1265, 0.9399]) >>> torch.sinh(a) tensor([ 0.5644, -0.9744, -0.1268, 1.0845])
© 2026, PyTorch Contributors
PyTorch has a BSD-style license, as found in the LICENSE file.
https://docs.pytorch.org/docs/2.14/generated/torch.sinh.html