Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/apache/tvm
/ __nonzero__
Method
__nonzero__
python/tvm/tirx/expr.py:292–293 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
290
self.span = span
291
292
def
__nonzero__(self) -> bool:
293
return
not self.a.same_as(self.b)
294
295
def
__bool__(self) -> bool:
296
return
self.__nonzero__()
Callers
1
__bool__
Method · 0.95
Calls
1
same_as
Method · 0.45
Tested by
no test coverage detected