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

Function bn_train

imperative/python/test/integration/test_trace_dump.py:134–136  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

132def test_dump_bn_train_mode():
133 @trace(symbolic=True, capture_as_const=True)
134 def bn_train(data):
135 pred = M.BatchNorm2d(10)(data).sum()
136 return pred
137
138 data = mge.tensor(np.random.random((10, 10, 10, 10)))
139 bn_train(data)

Callers 1

test_dump_bn_train_modeFunction · 0.85

Calls 1

sumMethod · 0.45

Tested by

no test coverage detected