MCPcopy Index your code
hub / github.com/apache/tvm / not_equal

Function not_equal

python/tvm/relax/op/binary.py:299–314  ·  view source on GitHub ↗

Broadcasted element-wise test for (lhs != rhs). Parameters ---------- x1 : relax.Expr The first input tensor. x2 : relax.Expr The second input tensor. Returns ------- result : relax.Expr The computed result.

(x1: Expr, x2: Expr)

Source from the content-addressed store, hash-verified

297
298
299def not_equal(x1: Expr, x2: Expr) -> Expr:
300 """Broadcasted element-wise test for (lhs != rhs).
301
302 Parameters
303 ----------
304 x1 : relax.Expr
305 The first input tensor.
306 x2 : relax.Expr
307 The second input tensor.
308
309 Returns
310 -------
311 result : relax.Expr
312 The computed result.
313 """
314 return _ffi_api.not_equal(x1, x2) # type: ignore
315
316
317def maximum(x1: Expr, x2: Expr) -> Expr:

Callers

nothing calls this directly

Calls 1

not_equalMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…