FilesLast commitLast update
16 days ago
2 months ago
3 months ago
1 month ago
2 months ago
22 days ago
2 months ago
5 months ago
2 months ago
25 days ago
29 days ago
8 days ago
README

Asinh

English | 简体中文

The inverse hyperbolic sine (Inverse Hyperbolic Sine) operator, corresponding to PyTorch torch.asinh / torch.asinh_. Online aclnn API documentation: docs/aclnnAsinh&aclnnInplaceAsinh_en.md

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

  • Interface function: performs the inverse hyperbolic sine operation on each element in the input Tensor and outputs the result.

  • Computation formula:

yi=ln(xi+xi2+1)y_{i}=ln(x_{i} + \sqrt{x_{i}^2 + 1})

Parameter Description

Parameter Name Input/Output/Attribute Description Data Type Data Format
x Input Input x in the formula. The dtype is the same as that of y, and the shape is arbitrary (0 to 8 dimensions). Empty Tensors are supported, and non-contiguous Tensors are supported. FLOAT, FLOAT16, BFLOAT16 ND
y Output Output y in the formula. The shape is exactly the same as that of x. It is specific to the non-in-place API. FLOAT, FLOAT16, BFLOAT16 ND
selfRef Input/Output Specific to the in-place API. It is a tensor that serves as both input and output, and the computation result is written back in place. FLOAT, FLOAT16, BFLOAT16 ND

Constraint Description

None

Invocation Description

Invocation Method Invocation Sample Description
aclnn invocation (non-in-place) examples/test_aclnn_asinh.cpp Refer to build.sh in the root directory of the ops-math repository to complete operator compilation and operator package installation, and then verify with the examples (on a physical NPU).
Graph-mode (GE IR) invocation examples/test_geir_asinh.cpp