-
Notifications
You must be signed in to change notification settings - Fork 6.8k
[Numpy] The symbolic export of BatchNorm is wrong #18373
Comments
I find that issue does not only happen in numpy but also exists in ndarray: import mxnet as mx
import json
import pprint
#mx.npx.set_np()
net = mx.gluon.nn.BatchNorm(epsilon=2E-5, axis=2)
net.hybridize()
net.initialize()
a = net(mx.nd.ones((10, 3, 5, 5)))
net.export('bnorm', 0)
with open('bnorm-symbol.json') as f:
dat = json.load(f)
pprint.pprint(dat) Output:
|
Hi @sxjscience , is it available to delete the pre-built pip packages impacted by this issue? BatchNorm is universally used, and this bug will not raise any exception. Users may install the previous version of MXNet with this bug, and find that the accuracy drops. |
@wkcn Yes, this is a disaster for the users. However, deleting the pre-built pip packages is also not a good option because there are users that are not using BatchNorm. We will need to ensure that the official 1.7 release does not contain this bug. |
cc @ciyongch |
Hi @szha, v1.7.x doesn't include the PR #17679 (it's a new feature after code freeze), so there's no such issue on this branch. While for v1.x branch, the fix were already cherry-picked.
|
Output:
We can find that
eps
andaxis
are not stored.The text was updated successfully, but these errors were encountered: