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

Function cb

imperative/python/test/unit/autodiff/test_grad_manager.py:87–89  ·  view source on GitHub ↗
(x, g)

Source from the content-addressed store, hash-verified

85 gm.attach(w)
86
87 def cb(x, g):
88 assert x is ref()
89 cb.called = True
90
91 for i in range(3):
92 with gm:

Callers

nothing calls this directly

Calls 1

refFunction · 0.50

Tested by

no test coverage detected