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

Function cb

imperative/python/test/unit/random/test_rng.py:715–716  ·  view source on GitHub ↗
(grad)

Source from the content-addressed store, hash-verified

713 g = []
714
715 def cb(grad):
716 g.append(grad)
717
718 n, m = 6, 3
719 arr = np.arange(n * m)

Callers 2

wrapperFunction · 0.50
callbackMethod · 0.50

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected