torch.asinh
-
torch.asinh(input: Tensor, *, out: Optional[Tensor]) → Tensor
返回一个新张量,包含 input
的元素的逆双曲正弦值。
outi=sinh−1(inputi)
- 参数:
input (Tensor) – 输入张量。
- 关键字参数:
输出(张量,可选)- 输出张量。
示例:
>>> a = torch.randn(4)
>>> a
tensor([ 0.1606, -1.4267, -1.0899, -1.0250 ])
>>> torch.asinh(a)
tensor([ 0.1599, -1.1534, -0.9435, -0.8990 ])