MCPcopy 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

strFunction · 0.85
hashFunction · 0.50

Tested by

no test coverage detected