FilesLast commitLast update
20 days ago
3 months ago
3 months ago
1 month ago
10 months ago
8 days ago
6 months ago
2 months ago
4 months ago
8 days ago
1 month ago
12 days ago
README

Acos

English | 简体中文

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 cosine of each element in the input and outputs the result.

  • Computation formula:

    yi=cos−1(xi)y_{i}=cos^{-1}(x_{i})

Parameter Description

Parameter Name Input/Output/Attribute Description Data Type Data Format
x Input The input tensor x in the formula. INT8, INT16, INT32, INT64, UINT8, BOOL, FLOAT, BFLOAT16, FLOAT16, DOUBLE ND
y Output The output tensor y in the formula. FLOAT, BFLOAT16, FLOAT16, DOUBLE ND

Constraint Description

  • When the input type is INT8, INT16, INT32, INT64, UINT8, or BOOL, the input is converted to FLOAT32 for computation, and the output is of the FLOAT32 type. Non-contiguous tensors are supported. The supported data format is ND. The number of dimensions of a non-contiguous tensor cannot be greater than 8, and the shapes of the input and output must be the same.

Invocation Description

Invocation Method Invocation Sample Description
aclnn invocation test_aclnn_acos Invokes the Acos operator through the aclnnAcos API.
aclnn invocation test_aclnn_inplace_acos Invokes the Acos operator through the aclnnInplaceAcos API.
Graph-mode invocation test_geir_acos Invokes the Acos operator by building a graph through the operator IR.