Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MegEngine/MegEngine
/ copy
Function
copy
imperative/python/test/unit/core/test_autodiff.py:158–161 ·
view source on GitHub ↗
(x)
Source
from the content-addressed store, hash-verified
156
x = mge.Tensor(x_np)
157
158
def
copy(x):
159
xx = mge.Tensor(x)
160
xx._reset(x)
161
return
xx
162
163
result = {}
164
Callers
1
test_wrt_visibility
Function · 0.70
Calls
2
_reset
Method · 0.95
Tensor
Method · 0.45
Tested by
no test coverage detected