Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MegEngine/MegEngine
/ make_dev_tensor
Function
make_dev_tensor
imperative/python/test/unit/utils/test_cgtools.py:18–19 ·
view source on GitHub ↗
(value, dtype=None, device=None)
Source
from the content-addressed store, hash-verified
16
17
18
def
make_dev_tensor(value, dtype=None, device=None):
19
return
megengine.tensor(value, dtype=dtype, device=device)._dev_tensor()
20
21
22
def
test_replace_vars():
Callers
4
calculate
Method · 0.85
dump
Method · 0.85
test_replace_vars
Function · 0.85
test_replace_oprs
Function · 0.85
Calls
2
_dev_tensor
Method · 0.80
tensor
Method · 0.80
Tested by
no test coverage detected