Learn R Programming

torch (version 0.8.1)

torch_atanh: Atanh

Description

Atanh

Usage

torch_atanh(self)

Arguments

self

(Tensor) the input tensor.

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

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

Examples

Run this code
if (torch_is_installed()) {

a = torch_randn(c(4))$uniform_(-1, 1)
a
torch_atanh(a)
}

Run the code above in your browser using DataLab