MCPcopy 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
18def make_dev_tensor(value, dtype=None, device=None):
19 return megengine.tensor(value, dtype=dtype, device=device)._dev_tensor()
20
21
22def test_replace_vars():

Callers 4

calculateMethod · 0.85
dumpMethod · 0.85
test_replace_varsFunction · 0.85
test_replace_oprsFunction · 0.85

Calls 2

_dev_tensorMethod · 0.80
tensorMethod · 0.80

Tested by

no test coverage detected