Returns a new tensor with the hyperbolic cosine of the elements of input.

tch_cosh(x)

Arguments

x

tensor object

Examples

tch_cosh(tensor(pi))
#> tensor #> 11.5920 #> [ Variable[CPUFloatType]{1} ]