MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / as_tensor

Function as_tensor

imperative/python/test/unit/core/test_autodiff.py:38–39  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

36
37
38def as_tensor(x):
39 return mge.Tensor(x)
40
41
42def save_to(self, name="grad"):

Callers 5

workerFunction · 0.70
test_gradFunction · 0.70
test_grad_2Function · 0.70
test_2nd_gradFunction · 0.70

Calls 1

TensorMethod · 0.45

Tested by

no test coverage detected