AddExample
English | 简体中文
Product Support Status
| Product | Supported |
|---|---|
| Atlas A3 products | √ |
| Atlas A2 products | √ |
Function Description
-
Operator function: performs the addition computation.
-
Computation formula:
y=x1+x2y = x1 + x2
Parameter Description
| Parameter Name | Input/Output/Attribute | Description | Data Type | Data Format |
|---|---|---|---|---|
| x1 | Input | Input parameter for the add_example computation, which is x1 in the formula. | FLOAT, INT32 | ND |
| x2 | Input | Input parameter for the add_example computation, which is x2 in the formula. | FLOAT, INT32 | ND |
| y | Output | Output parameter for the add_example computation, which is y in the formula. | FLOAT, INT32 | ND |
Constraint Description
None
Invocation Description
| Invocation Method | Invocation Sample | Description |
|---|---|---|
| aclnn invocation | test_aclnn_add_example | See Operator Invocation to complete operator compilation and verification. |
| Graph-mode invocation | test_geir_add_example |