FilesLast commitLast update
29 days ago
29 days ago
29 days ago
29 days ago
29 days ago
29 days ago
3 months ago
20 days ago
4 days ago
README

AddExample

English | 简体中文

Product Support

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 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

Constraints

None

Invocation Description

Invocation Method Invocation Sample Description
aclnn invocation test_aclnn_add_example A quick invocation sample is shown below. It is for reference only. For details about how to compile and run an operator, see Operator Invocation.
## Quick Start
# Run the following commands in the root directory of the ops-transformer repository
# Assume that the environment variables are ready
bash build.sh --soc=${soc_version} --ops=add_example
bash build.sh --run_example add_example eager cus