Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

[ONNX export] Fixing spatial export for batchnorm #17711

Merged
merged 20 commits into from
Apr 7, 2020
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
19138f6
fixing spatial export for batchnorm
vinitra Feb 27, 2020
7825aab
retrigger CI
vinitra Mar 4, 2020
33fb1bd
fixing broken pylint
vinitra Mar 4, 2020
04efda7
retrigger build
vinitra Mar 4, 2020
de8a36e
Merge branch 'master' of https://github.com/apache/incubator-mxnet in…
vinitra Mar 6, 2020
7acdf45
deprecating spatial attribute in exporter so default behavior of spat…
vinitra Mar 6, 2020
6e3f581
Merge branch 'master' of https://github.com/apache/incubator-mxnet in…
vinitra Mar 9, 2020
0d20f84
Merge branch 'master' of https://github.com/apache/incubator-mxnet in…
vinitra Mar 10, 2020
863a0d9
Merge branch 'master' of https://github.com/apache/incubator-mxnet in…
vinitra Mar 11, 2020
8d82b0d
Merge branch 'master' of https://github.com/apache/incubator-mxnet in…
vinitra Mar 12, 2020
0fdcb2d
Merge branch 'master' of https://github.com/apache/incubator-mxnet in…
vinitra Mar 18, 2020
e94933c
Merge branch 'fix-batchnorm-onnx' of https://github.com/vinitra/incub…
vinitra Mar 18, 2020
7b59158
Merge branch 'master' of https://github.com/apache/incubator-mxnet in…
vinitra Mar 20, 2020
8e6a1eb
Merge branch 'master' of https://github.com/apache/incubator-mxnet in…
vinitra Mar 23, 2020
585511f
Merge branch 'fix-batchnorm-onnx' of https://github.com/vinitra/incub…
vinitra Mar 23, 2020
7c1c82f
Merge branch 'master' of https://github.com/apache/incubator-mxnet in…
vinitra Mar 24, 2020
c50ccb6
Merge branch 'master' of https://github.com/apache/incubator-mxnet in…
vinitra Mar 26, 2020
e927b4d
Merge branch 'master' of https://github.com/apache/incubator-mxnet in…
vinitra Apr 2, 2020
24a425c
Merge branch 'master' of https://github.com/apache/incubator-mxnet in…
vinitra Apr 3, 2020
0d82df8
Merge branch 'master' of https://github.com/apache/incubator-mxnet in…
vinitra Apr 6, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions python/mxnet/contrib/onnx/mx2onnx/_op_translations.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,10 +349,11 @@ def convert_batchnorm(node, **kwargs):
[name],
name=name,
epsilon=eps,
momentum=momentum,
# MXNet computes mean and variance per feature for batchnorm
# Default for onnx is across all spatial features. So disabling the parameter.
spatial=0
momentum=momentum
# MXNet computes mean and variance per channel for batchnorm.
# Default for onnx is across all spatial features. Relying on default
# ONNX behavior of spatial=1 for ONNX opset 8 and below. As the spatial
# attribute is deprecated in opset 9 and above, not explicitly encoding it.
)
return [bn_node]

Expand Down