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

Function train_bn

imperative/python/test/integration/test_bn.py:143–146  ·  view source on GitHub ↗
(inp, net=None)

Source from the content-addressed store, hash-verified

141
142 @trace(symbolic=True)
143 def train_bn(inp, net=None):
144 net.train()
145 pred = net(inp)
146 return pred
147
148 x = tensor(np.ones((1, 1, 32, 32), dtype=np.float32))
149 y = train_bn(x, net=Simple())

Callers 1

Calls 1

trainMethod · 0.45

Tested by

no test coverage detected