| Files | Last commit | Last update |
|---|---|---|
| 2 months ago | ||
| 2 months ago | ||
| 12 days ago | ||
| 12 days ago | ||
| 9 months ago | ||
| 2 months ago | ||
| 1 month ago | ||
| 2 days ago | ||
| 2 days ago |
Assign
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: fills the value of one input tensor into another input tensor.
-
Computation formula:
outi=valueiout_i=value_i
Parameter Description
| Parameter Name | Input/Output/Attribute | Description | Data Type | Data Format |
|---|---|---|---|---|
| ref | Input | Input parameter for the Assign computation, which is out in the formula. The input is also the output. | FLOAT, FLOAT16, BFLOAT16, DOUBLE, INT8, UINT8, INT16, UINT16, INT32, UINT32, INT64, UINT64, BOOL, COMPLEX32, COMPLEX64 | ND |
| value | Input | Fill value for the Assign computation, which is value in the formula. | FLOAT, FLOAT16, BFLOAT16, DOUBLE, INT8, UINT8, INT16, UINT16, INT32, UINT32, INT64, UINT64, BOOL, COMPLEX32, COMPLEX64 | ND |
| ref | Output | Output parameter for the Assign computation, which is out in the formula. | FLOAT, FLOAT16, BFLOAT16, DOUBLE, INT8, UINT8, INT16, UINT16, INT32, UINT32, INT64, UINT64, BOOL, COMPLEX32, COMPLEX64 | ND |
Constraint Description
- Ascend 950PR&950DT products: The supported data types are FLOAT, FLOAT16, BFLOAT16, DOUBLE, INT8, UINT8, INT16, UINT16, INT32, UINT32, INT64, UINT64, BOOL, COMPLEX32, and COMPLEX64.
- Atlas A3 products and Atlas A2 products: The supported data types are FLOAT, FLOAT16, BFLOAT16, INT8, UINT8, INT16, UINT16, INT32, UINT32, INT64, UINT64, and BOOL.
- Atlas inference products and Atlas training products: The supported data types are FLOAT, FLOAT16, INT8, UINT8, INT16, UINT16, INT32, UINT32, INT64, UINT64, and BOOL.
Invocation Description
| Invocation Method | Invocation Sample | Description |
|---|---|---|
| Graph-mode invocation | test_geir_assign | Invokes the Assign operator by building a graph through the operator IR. |