NotEqual
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: compares whether the two input tensors are not equal element by element
- Computation formula:
yi={True,if xi,1≠xi,2False,otherwise\text{y}_i =
\begin{cases}
True,&\text{if }x_{i, 1} \ne x_{i,2} \\
False,&\text{otherwise}
\end{cases}
yi={True,False,if xi,1=xi,2otherwise
Parameter Description
| Parameter Name |
Input/Output/Attribute |
Description |
Data Type |
Data Format |
| x1 |
Input |
Input x1 in the formula. |
DOUBLE, FLOAT16, FLOAT, BFLOAT16, INT64, INT32, INT8, UINT8, BOOL, INT16, COMPLEX64, COMPLEX128, UINT64 |
ND |
| x2 |
Input |
Input x2 in the formula. |
DOUBLE, FLOAT16, FLOAT, BFLOAT16, INT64, INT32, INT8, UINT8, BOOL, INT16, COMPLEX64, COMPLEX128, UINT64 |
ND |
| y |
Output |
y in the formula. |
BOOL |
ND |
Invocation Description