Inverse Hyperbolic Cosine (Acosh)#

API#

class warp_nn.modules.operators.Acosh(*, requires_grad: bool = True)[source]#

Bases: Module

Inverse Hyperbolic Cosine (Acosh) operation.

This class computes the element-wise inverse hyperbolic cosine:

\[\text{Acosh}(x) = \ln\left(x + \sqrt{x^2 - 1}\right)\]
Parameters:

requires_grad – Whether the cached output arrays of the module require gradients.

__call__(
input: array,
) → array[source]#

Forward pass of the operation.

Parameters:

input – The input array, with up to 3 dimensions.

Returns:

The output array, with same shape as the input array.

Raises:

TypeError – If the input array’s data type or number of dimensions is not supported.