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

Function is_int

python/tvm/relax/op/create.py:265–270  ·  view source on GitHub ↗
(expr)

Source from the content-addressed store, hash-verified

263 start = 0
264
265 def is_int(expr):
266 if isinstance(expr, int):
267 return True
268 if isinstance(expr, PrimValue):
269 expr = expr.value
270 return isinstance(expr, PrimExpr) and DataType(expr.dtype).type_code == DataTypeCode.INT # type: ignore
271
272 if dtype is None:
273 args = (start, end, step)

Callers 1

arangeFunction · 0.85

Calls 1

DataTypeClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…