FilesLast commitLast update
17 days ago
2 months ago
5 days ago
2 months ago
1 month ago
5 days ago
29 days ago
1 month ago
1 month ago
9 days ago
README

Addr

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: computes the outer product of the one-dimensional vectors vec1 and vec2 to obtain a two-dimensional matrix, then multiplies the outer product result matrix by a coefficient, adds it to self multiplied by a coefficient, and outputs the result

  • Computation formula:

    out=β self+α (vec1⊗vec2)\text{out} = \beta\ \text{self} + \alpha\ (\text{vec1} \otimes\text{vec2})

Parameter Description

Parameter Name Input/Output/Attribute Description Data Type Data Format
x1 Input Input parameter for the addr computation, which is self in the formula. FLOAT, FLOAT16, BFLOAT16, INT8, UINT8, BOOL ND
x2 Input Input parameter for the addr computation, which is vec1 in the formula. FLOAT, FLOAT16, BFLOAT16, INT8, UINT8, BOOL ND
x3 Input Input parameter for the addr computation, which is vec2 in the formula. FLOAT, FLOAT16, BFLOAT16, INT8, UINT8, BOOL ND
beta Input Input parameter for the addr computation, which is β in the formula. FLOAT, FLOAT16, BFLOAT16, INT8, UINT8, BOOL ND
alpha Input Input parameter for the addr computation, which is α in the formula. FLOAT, FLOAT16, BFLOAT16, INT8, UINT8, BOOL ND
y Output Output parameter for the addr computation, which is out in the formula. FLOAT, FLOAT16, BFLOAT16, INT8, UINT8, BOOL ND
  • Atlas training products: The supported data types are FLOAT, FLOAT16, DOUBLE, INT8, INT16, INT32, INT64, UINT8, and BOOL.
  • Atlas A2 products, Atlas A3 products, and Ascend 950PR&950DT products: The supported data types are FLOAT, FLOAT16, DOUBLE, INT8, INT16, INT32, INT64, UINT8, BOOL, and BFLOAT16.

Constraint Description

None

Invocation Description

Invocation Method Invocation Sample Description
aclnn invocation test_aclnn_addr Invokes the Addr operator through the aclnnAddr API.