MCPcopy 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
42def 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

workerFunction · 0.85
test_gradFunction · 0.85
test_grad_2Function · 0.85
test_2nd_gradFunction · 0.85
test_grad_inplaceFunction · 0.85
test_identityFunction · 0.85
test_elemwise_addFunction · 0.85
test_elemwise_reluFunction · 0.85
test_reshapeFunction · 0.85
test_subtensorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected