vinitra commented on issue #17711: [ONNX export] Fixing spatial export for 
batchnorm
URL: https://github.com/apache/incubator-mxnet/pull/17711#issuecomment-595884579
 
 
   > As far as I understand, `spatial=1` is the default in all versions of the 
`BatchNormalization` operator. The newer versions don't have this attribute, 
but still do a computation as if `spatial=1`, so I think we are better off 
removing the explicit attribute and relying on the default behaviour, since 
specifying it explicitly will make it harder to convert to newer ONNX opset 
versions.
   > 
   > What do you think?
   > 
   > Edit:
   > 
   > The comment says that the default for ONNX is to compute `across all 
spatial features`, but the docs 
[here](https://github.com/onnx/onnx/blob/master/docs/Changelog.md) say `spatial 
: int (default is 1)` for all BatchNormalization ops that have this attribute. 
Admittedly, the ONNX documentation wording is really confusing.
   
   This makes sense! I've deprecated the attribute in my recent PR update, and 
provided more clarity in the comments.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to