Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MegEngine/MegEngine
/ load
Method
load
imperative/python/megengine/utils/network_node.py:323–326 ·
view source on GitHub ↗
(cls, opr)
Source
from the content-addressed store, hash-verified
321
class
ReadOnlyOpNode(OpNode):
322
@classmethod
323
def
load(cls, opr):
324
obj = super(ReadOnlyOpNode, cls).load(opr)
325
obj.type = opr.type
326
return
obj
327
328
def
compile(self):
329
assert self._opr is not None
Callers
nothing calls this directly
Calls
1
load
Method · 0.45
Tested by
no test coverage detected