Add#
Add operation performs element-wise addition operation with two given tensors applying multi-directional broadcast rules.
Operation Attributes#
|
Description |
Value Type |
|
|
---|---|---|---|---|
Specifies rules used for auto-broadcasting of src tensors |
string |
|
Optional |
Execution Arguments#
The inputs and outputs must be provided according to the below index order when constructing an operation.
Inputs#
Index |
Argument Name |
Required or Optional |
---|---|---|
0 |
|
Required |
1 |
|
Required |
@note Both src shapes should match and no auto-broadcasting is allowed
if auto_broadcast
attributes is none
. src_0
and src_1
shapes
can be different and auto-broadcasting is allowed if auto_broadcast
attributes is numpy
.
Outputs#
Index |
Argument Name |
Required or Optional |
---|---|---|
0 |
|
Required |
Supported Data Types#
Add operation supports the following data type combinations.
Source0/1 |
Destination |
---|---|
f32 |
f32 |
bf16 |
bf16 |
f16 |
f16 |