Fills
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 all elements of the input tensor with a specified value.
-
Computation formula:
outi=valueout_i=value
Parameter Description
| Parameter Name | Input/Output/Attribute | Description | Data Type | Data Format |
|---|---|---|---|---|
| x | Input | Input parameter for the Fills computation. | FLOAT, FLOAT16, BFLOAT16, INT8, UINT8, INT32, INT64 | ND |
| value | Input attribute | Fill value for the Fills computation, which is value in the formula. | FLOAT | ND |
| y | Output | Output parameter for the Fills computation, which is out_i in the formula. | FLOAT, FLOAT16, BFLOAT16, INT8, UINT8, INT32, INT64 | ND |
Constraint Description
None
Invocation Description
| Invocation Method | Invocation Sample | Description |
|---|---|---|
| Graph-mode invocation | test_geir_fills | Invokes the Fills operator by building a graph through the operator IR. |