Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MegEngine/MegEngine
/ save_to
Function
save_to
imperative/python/test/unit/core/test_autodiff.py:42–46 ·
view source on GitHub ↗
(self, name="grad")
Source
from the content-addressed store, hash-verified
40
41
42
def
save_to(self, name=
"grad"
):
43
def
callback(grad):
44
setattr(self, name, grad)
45
46
return
callback
47
48
49
@pytest.mark.require_ngpu(2)
Callers
15
worker
Function · 0.85
test_grad
Function · 0.85
test_grad_2
Function · 0.85
test_2nd_grad
Function · 0.85
test_grad_with_tensor_wrapper
Function · 0.85
test_grad_inplace
Function · 0.85
test_identity
Function · 0.85
test_elemwise_add
Function · 0.85
test_elemwise_relu
Function · 0.85
test_reshape
Function · 0.85
test_subtensor
Function · 0.85
test_IndexingMultiAxisVec
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected