MCPcopy Create free account
hub / github.com/apache/tvm / less

Function less

python/tvm/relax/op/binary.py:263–278  ·  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

261
262
263def less(x1: Expr, x2: Expr) -> Expr:
264 """Broadcasted element-wise test for (lhs < rhs).
265
266 Parameters
267 ----------
268 x1 : relax.Expr
269 The first input tensor.
270 x2 : relax.Expr
271 The second input tensor.
272
273 Returns
274 -------
275 result : relax.Expr
276 The computed result.
277 """
278 return _ffi_api.less(x1, x2) # type: ignore
279
280
281def less_equal(x1: Expr, x2: Expr) -> Expr:

Callers 4

maximum_gradFunction · 0.70
minimum_gradFunction · 0.70
abs_gradFunction · 0.70
relu_gradFunction · 0.70

Calls 1

lessMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…