FilesLast commitLast update
1 day ago
22 days ago
3 months ago
6 days ago
17 days ago
5 days ago
26 days ago
26 days ago
5 days ago
5 days ago
22 days ago
5 days ago
README

Equal

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 two input tensors element by element for equality and returns a bool tensor.

  • Computation expression:

    out=(self==other)?True:Falseout = (self == other) ? True : False

Parameter Description

Parameter Name Input/Output/Attribute Description Data Type Data Format
x1 Input The input self in the formula. FLOAT, BFLOAT16, FLOAT16, INT32, INT8, UINT8, DOUBLE, INT16, INT64, COMPLEX64, COMPLEX128, QUINT8, QINT8, QINT32, STRING, BOOL ND
x2 Input The input other in the formula. FLOAT, BFLOAT16, FLOAT16, INT32, INT8, UINT8, DOUBLE, INT16, INT64, COMPLEX64, COMPLEX128, QUINT8, QINT8, QINT32, STRING, BOOL ND
y Output out in the formula. BOOL ND

Constraint Description

If the computation workload is too large, the operator execution may time out (an aicore error is reported, with errorStr: timeout or trap error). The scenario is that the combined size of the last 2 axes is less than 16, while the combined size of the preceding axes is extremely large.

Invocation Description

Invocation Method Invocation Sample Description
aclnn API test_aclnn_eq_tensor.cpp Invokes the Equal operator through the aclnnEqTensor API.
GE graph mode test_geir_equal.cpp Invokes the Equal operator by building a graph through the operator IR.