Learn R Programming

torch (version 0.8.1)

torch_acosh: Acosh

Description

Acosh

Usage

torch_acosh(self)

Arguments

self

(Tensor) the input tensor.

acosh(input, *, out=None) -> Tensor

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

Examples

Run this code
if (torch_is_installed()) {

a <- torch_randn(c(4))$uniform_(1, 2)
a
torch_acosh(a)
}

Run the code above in your browser using DataLab