torch.cosh
- torch.cosh(input, *, out=None) → Tensor
Returns a new tensor with the hyperbolic cosine of the elements of
input.
Returns a new tensor with the hyperbolic cosine of the elements of
input.
Example:
>>> a = torch.randn(4)
>>> a
tensor([ 0.1632, 1.1835, -0.6979, -0.7325])
>>> torch.cosh(a)
tensor([ 1.0133, 1.7860, 1.2536, 1.2805])