Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
38
def
as_tensor(x):
39
return
mge.Tensor(x)
40
41
42
def
save_to(self, name=
"grad"
):
Callers
5
worker
Function · 0.70
test_grad
Function · 0.70
test_grad_2
Function · 0.70
test_2nd_grad
Function · 0.70
make_from_computing_graph
Function · 0.50
Calls
1
Tensor
Method · 0.45
Tested by
no test coverage detected