| Files | Last commit | Last update |
|---|---|---|
| 14 days ago | ||
| 2 months ago | ||
| 28 days ago | ||
| 2 months ago | ||
| 27 days ago | ||
| 2 months ago | ||
| 12 days ago | ||
| 27 days ago | ||
| 1 month ago | ||
| 6 days ago |
Dot
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
-
Interface function: computes the dot product of two one-dimensional tensors.
-
Computation formula:
self=[x1,x2,...,xn]self = [x_{1}, x_{2}, ..., x_{n}]
tensor=[y1,y2,...,yn]tensor = [y_{1}, y_{2}, ..., y_{n}]
out=x1∗y1+x2∗y2+...+xn∗ynout = x_{1}*y_{1} + x_{2}*y_{2} + ... + x_{n}*y_{n}
Parameter Description
| Parameter Name | Input/Output/Attribute | Description | Data Type | Data Format |
|---|---|---|---|---|
| self | Input | The input tensor involved in the dot product computation, which is self in the formula. Its data type is the same as those of tensor and out, and its shape is the same as that of tensor. | BFLOAT16, FLOAT16, FLOAT, INT8, INT32, UINT8 | ND |
| tensor | Input | The input tensor involved in the dot product computation, which is tensor in the formula. Its data type is the same as those of self and out, and its shape is the same as that of self. | BFLOAT16, FLOAT16, FLOAT, INT8, INT32, UINT8 | ND |
| out | Output | The dot product computation result, which is the output out in the formula. Its data type is the same as those of self and tensor. | BFLOAT16, FLOAT16, FLOAT, INT8, INT32, UINT8 | ND |
- Atlas inference products and Atlas training products: the BFLOAT16 data type is not supported.
Constraint Description
None
Invocation Description
| Invocation Method | Invocation Sample | Description |
|---|---|---|
| aclnn invocation | test_aclnn_dot | Invokes the Dot operator through the aclnnDot API. |