Invert
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: inverts each element in the input tensor.
-
Computation formula:
outi=∼inputiout_i=\sim input_i
Parameter Description
| Parameter Name | Input/Output/Attribute | Description | Data Type | Data Format |
|---|---|---|---|---|
| x | Input | Input parameter for the invert computation, which is input_i in the formula. | INT8, INT16, INT32, INT64, UINT8, UINT16, UINT32, UINT64 | ND |
| y | Output | Output parameter for the invert computation, which is out_i in the formula. | INT8, INT16, INT32, INT64, UINT8, UINT16, UINT32, UINT64 | ND |
- Atlas training products and Atlas inference products: BFLOAT16 is not supported.
Constraint Description
None
Invocation Description
| Invocation Method | Invocation Sample | Description |
|---|---|---|
| Graph-mode invocation | test_geir_invert | Invokes the invert operator by building a graph through the operator IR |