FilesLast commitLast update
2 months ago
27 days ago
26 days ago
24 days ago
15 days ago
14 days ago
1 month ago
1 month ago
14 days ago
README

AxpyV2

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: multiplies each element in the source operand by the corresponding element in a tensor, and then adds the product to the corresponding element in the destination operand.

  • Computation formula:

outi=selfi+alphai×otheriout_i=self_i + alpha_i × other_i

Parameter Description

Parameter Name Input/Output/Attribute Description Data Type Data Format
x1 Input Input tensor self_i in the formula FLOAT16, BFLOAT16, FLOAT, INT32, UINT8, INT8, INT64, BOOL ND
x2 Input Input tensor other_i in the formula FLOAT16, BFLOAT16, FLOAT, INT32, UINT8, INT8, INT64, BOOL ND
alpha Attribute Input tensor alpha_i in the formula FLOAT16, BFLOAT16, FLOAT, INT32, UINT8, INT8, INT64, BOOL ND
y Output Output tensor out_i in the formula FLOAT16, BFLOAT16, FLOAT, INT32, UINT8, INT8, INT64, BOOL ND

Constraint Description

None

Invocation Description

Invocation Method Invocation Sample Description
Graph-mode invocation test_geir_axpy_v2 Invokes the AxpyV2 operator by building a graph through the operator IR