Skip to content

[ONNX] Fix an issue with #5755 and add Batch norm unit tests.#5845

Merged
tqchen merged 1 commit intoapache:masterfrom
mbrookhart:mbrookhart/batch_norm_onnx
Jun 18, 2020
Merged

[ONNX] Fix an issue with #5755 and add Batch norm unit tests.#5845
tqchen merged 1 commit intoapache:masterfrom
mbrookhart:mbrookhart/batch_norm_onnx

Conversation

@mbrookhart
Copy link
Contributor

@masahi

@jwfromm discovered an issue with #5755 , infer_value chokes on ops with multiple outputs. I already knew this for Tuple, this adds a work around to infer batch_norm with the following TupleGetItem node instead of by itself.

In adding a regression test, I discovered that the Onnx importer for batch norm wasn't tested, so I added a unit test for it.

Are you guys aware of any other multi-output ops that might suffer the same problem?

@jwfromm
Copy link
Contributor

jwfromm commented Jun 18, 2020

thanks for the fix, LGTM.

@tqchen tqchen merged commit d85efa1 into apache:master Jun 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants