Skip to content

Update printable_graph in helper.py to output details of initializers that do not have matching graph inputs.#2135

Merged
wschin merged 9 commits intoonnx:masterfrom
skottmckay:OutputAllInitializersFromPrintableGraph
Sep 11, 2019
Merged

Update printable_graph in helper.py to output details of initializers that do not have matching graph inputs.#2135
wschin merged 9 commits intoonnx:masterfrom
skottmckay:OutputAllInitializersFromPrintableGraph

Conversation

@skottmckay
Copy link
Copy Markdown
Contributor

An IR v4 model is not required to have matching graph inputs for all initializers. Update printable_graph to allow for this and output the name, type and shape of initializers with no matching graph input.

Example new output:

graph Example (
%feature[FLOAT, Sequencex1x32]
) overridable initializers (
%Block912_Output_0_shape[INT64, 3]
) initializers (
%Block912_Const_0[FLOAT, 32x128]
) {
...
}

Without the change there would be no information for Block912_Const_0 in the output.

An IR v4 model is not required to have matching graph inputs for all initializers. Update printable_graph to allow for this and output the name, type and shape of initializers with no matching graph input.
@skottmckay skottmckay requested a review from a team as a code owner June 27, 2019 05:27
@linkerzhang linkerzhang requested a review from houseroad July 12, 2019 15:09
@prasanthpul prasanthpul added this to the 1.6 milestone Sep 9, 2019
@prasanthpul prasanthpul requested a review from ebarsoum September 9, 2019 23:33
Copy link
Copy Markdown
Collaborator

@wschin wschin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It'd be better to add a test but this is not a blocking comment. Thank you!

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Sep 10, 2019

CLA assistant check
All committers have signed the CLA.

@wschin wschin merged commit fa70c33 into onnx:master Sep 11, 2019
jcwchen pushed a commit to jcwchen/onnx that referenced this pull request Sep 23, 2020
… that do not have matching graph inputs. (onnx#2135)

* Update helper.py

An IR v4 model is not required to have matching graph inputs for all initializers. Update printable_graph to allow for this and output the name, type and shape of initializers with no matching graph input.

* Add test for printable_graph

Add test and tweak messaging

* Fix comment formatting
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.

5 participants