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

Xdivy

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 / y, and the result is 0 when x == 0.

  • Computation formula:

    out={0if x=0xyotherwiseout = \begin{cases} 0 & \text{if } x = 0 \\ \frac{x}{y} & \text{otherwise} \end{cases}

  • Supports broadcast: the shapes of x and y must satisfy the broadcast relationship, and the output shape is the maximum shape after broadcasting.

Parameter Description

Parameter Name Input/Output/Attribute Description Data Type Data Format
x1 Input x in the formula, which is the dividend. The shape of x1 must satisfy the broadcast relationship with x2. FLOAT, FLOAT16, BFLOAT16 ND
x2 Input y in the formula, which is the divisor. The shape of x2 must satisfy the broadcast relationship with x1. FLOAT, FLOAT16, BFLOAT16 ND
y Output out in the formula, which is the computation result. The shape is the maximum shape of x1 and x2 after broadcasting. FLOAT, FLOAT16, BFLOAT16 ND

Constraint Description

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

Invocation Description

Invocation Method Invocation Sample Description
Graph-mode invocation test_geir_xdivy Invokes the Xdivy operator by building a graph through the operator IR.