FilesLast commitLast update
8 days ago
2 months ago
3 months ago
15 days ago
11 days ago
14 days ago
2 months ago
2 months ago
11 days ago
25 days ago
1 month ago
9 days ago
README

AddN

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: performs element-wise addition on the inputs and computes the sum.

  • Computation formula:

    y=x1+x2+...+xny = x_1 + x_2+ ... +x_n

Parameter Description

Parameter Name Input/Output/Attribute Description Data Type Data Format
x Input Input tensor x in the formula. INT32, INT64, FLOAT16, BFLOAT16, FLOAT32 ND
y Output Output tensor y in the formula. Same as x ND
N Attribute Number of input x tensors in the formula. INT32 ND

Invocation Description

Invocation Method Invocation Sample Description
Graph-mode invocation test_geir_add_n Invokes the AddN operator by building a graph through the operator IR
aclnn invocation test_aclnn_add_n Invokes the AddN operator through the aclnn API