View source: R/gen-namespace.R
torch_acosh | R Documentation |
Acosh
torch_acosh(self)
self |
(Tensor) the input tensor. |
Returns a new tensor with the inverse hyperbolic cosine of the elements of input
.
The domain of the inverse hyperbolic cosine is [1, inf)
and values outside this range
will be mapped to NaN
, except for + INF
for which the output is mapped to + INF
.
\mbox{out}_{i} = \cosh^{-1}(\mbox{input}_{i})
if (torch_is_installed()) {
a <- torch_randn(c(4))$uniform_(1, 2)
a
torch_acosh(a)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.