Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MegEngine/MegEngine
/ device
Method
device
imperative/python/megengine/utils/network_node.py:257–258 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
255
256
@property
257
def
device(self):
258
return
self._opr.outputs[0].comp_node
if
self._opr
else
None
259
260
@device.setter
261
def
device(self, device):
Callers
nothing calls this directly
Calls
2
set_value
Method · 0.95
numpy
Method · 0.95
Tested by
no test coverage detected