Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix problem of initializer not in input #13

Merged
merged 2 commits into from
Dec 25, 2020

Conversation

daquexian
Copy link
Member

@daquexian daquexian commented Oct 25, 2020

Since onnx/onnx#3007 cannot be merged in the short term, here is a naive workaround for onnx/onnx#2417: add the initializer to the input of the ModelProto, and remove them after optimization if needed. It follows the way of onnx-simplifier.

A test ("test_fuse_bn_into_conv_simple") is also updated for this case.

Signed-off-by: daquexian <daquexian566@gmail.com>
@daquexian daquexian changed the title fix problem that initializer not in input fix problem of initializer not in input Oct 25, 2020
@linkerzhang
Copy link
Member

I think we should merge onnx/onnx#3007

@daquexian
Copy link
Member Author

@linkerzhang When will onnx/onnx#3007 be merged? If it will take a long time, this PR can serve as a temporary workaround.

@linkerzhang
Copy link
Member

merge this firstly to unblock folks.

@linkerzhang linkerzhang merged commit 8af2ffe into onnx:master Dec 25, 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.

2 participants