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

Function _save_to

imperative/python/test/unit/quantization/test_fake_quant.py:89–93  ·  view source on GitHub ↗
(self, name="grad")

Source from the content-addressed store, hash-verified

87
88
89def _save_to(self, name="grad"):
90 def callback(grad):
91 setattr(self, name, grad)
92
93 return callback
94
95
96class Round(Function):

Callers 1

runFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected