FilesLast commitLast update
8 days ago
14 days ago
3 months ago
16 days ago
16 days ago
8 days ago
2 months ago
2 months ago
3 days ago
16 days ago
1 month ago
9 days ago
README

Atanh

English | 简体中文

Contribution Description

Contributor Contributed Operator Contribution Date Contribution Content
CANN-BOT SIMT atanh 2026/05/22 Added the atanh operator

Product Support Status

Product Supported
Ascend 950PR&950DT products √
Atlas A3 products √
Atlas A2 products √
Atlas 200I/500 A2 inference products √
Atlas inference products √
Atlas training products √

Function Description

  • Operator function: computes the inverse hyperbolic tangent.

  • Computation formula:

y=atanh(x)=12ln⁡(1+x1−x)y = \text{atanh}(x) = \frac{1}{2} \ln\left(\frac{1+x}{1-x}\right)

Parameter Description

Parameter Name Input/Output/Attribute Description Data Type Data Format
x Input Input parameter for the atanh computation, which is x in the formula. The input value range is (-1, 1). FLOAT16, FLOAT, BF16 ND
y Output Result of the atanh computation, which is y in the formula. FLOAT16, FLOAT, BF16 ND

Constraint Description

  • The value range of the input x is (-1, 1). If |x|>1, NaN is output; if x=±1, ±Inf is output.
  • The output shape is identical to the input shape.
  • The output dtype is identical to the input dtype.

Invocation Description

Invocation Method Invocation Sample Description
aclnn invocation test_aclnn_atanh Refer to Operator Invocation to complete operator compilation and verification.
Graph-mode invocation test_geir_atanh Refer to Operator Invocation to complete operator compilation and verification.