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

Function _and

python/tvm/tirx/script/parser/operation.py:29–37  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

27 ty._dispatch_type = ty # pylint: disable=protected-access
28
29 def _and(a, b):
30 if isinstance(a, bool):
31 a = IntImm("bool", a)
32 if isinstance(b, bool):
33 b = IntImm("bool", b)
34 if DataType(a.dtype).lanes > 1 or DataType(b.dtype).lanes > 1:
35 return a & b
36 else:
37 return tirx.And(a, b)
38
39 def _or(a, b):
40 if isinstance(a, bool):

Callers

nothing calls this directly

Calls 2

IntImmClass · 0.90
DataTypeClass · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…