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

Method __bool__

python/tvm/tirx/expr.py:295–296  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

293 return not self.a.same_as(self.b)
294
295 def __bool__(self) -> bool:
296 return self.__nonzero__()
297
298 def asobject(self) -> PrimExpr:
299 """Convert object."""

Callers

nothing calls this directly

Calls 1

__nonzero__Method · 0.95

Tested by

no test coverage detected