FilesLast commitLast update
10 days ago
2 months ago
3 months ago
5 months ago
10 days ago
10 days ago
19 days ago
10 days ago
18 days ago
1 month ago
11 days ago
README

Xlog1py

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 x * log(1 + y), and the result is 0 when x == 0.
  • Computation formula:

zi={0,xi=0xi⋅log⁡(1+yi),xi≠0z_i = \begin{cases} 0, & x_i = 0 \\ x_i \cdot \log(1 + y_i), & x_i \neq 0 \end{cases}

Parameter Description

Parameter Name Input/Output/Attribute Description Data Type Data Format
x Input x in the formula, which is the multiplier. The shape of x must satisfy the broadcast relationship with y. FLOAT, FLOAT16, BFLOAT16 ND
y Input y in the formula, which is the independent variable of log1p. The shape of y must satisfy the broadcast relationship with x. FLOAT, FLOAT16, BFLOAT16 ND
z Output z in the formula, which is the computation result. The shape is the maximum shape of x and y after broadcasting. FLOAT, FLOAT16, BFLOAT16 ND

Constraint Description

  • The input shape has a maximum of 8 dimensions.
  • The data types of the inputs x and y and the output z must be the same.

Invocation Description

Invocation Method Invocation Sample Description
aclnn invocation test_aclnn_xlog1py Invokes the Xlog1py operator through the aclnnXlog1py API.
Graph-mode invocation test_geir_xlog1py Invokes the Xlog1py operator by building a graph through the operator IR.