Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MegEngine/MegEngine
/ __hash__
Method
__hash__
imperative/python/megengine/core/_wrap.py:37–38 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
35
return
str(self._cn)
36
37
def
__hash__(self):
38
return
hash(str(self._cn))
39
40
def
__eq__(self, rhs):
41
if
not isinstance(rhs, Device):
Callers
nothing calls this directly
Calls
2
str
Function · 0.85
hash
Function · 0.50
Tested by
no test coverage detected