Skip to content

transpose optimizer wrongly removes a transpose #1288

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

Merged
merged 3 commits into from
Jan 22, 2021
Merged

Conversation

guschmue
Copy link
Contributor

Signed-off-by: guschmue [email protected]

fix for #1277

transpose optimizer wrongly removes a transpose when trying to push to none existing subgraph.

Signed-off-by: guschmue <[email protected]>
@@ -462,7 +462,7 @@ def __init__(self, nodes, output_shapes=None, dtypes=None, target=None, opset=No
self._output_to_consumers = {}
self._input_to_graph = {}
self.shapes = {}
self.graph_name = graph_name or "tf2onnx"
self.graph_name = graph_name or utils.make_name("tf2onnx")
Copy link
Collaborator

Choose a reason for hiding this comment

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

Did you determine the cause of the identical names issue?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, its the main graph that is set to 'tf2onnx' when writing the onnx file, which is actually what we want.

Signed-off-by: guschmue <[email protected]>
@guschmue guschmue merged commit d8b0df3 into master Jan 22, 2021
@guschmue guschmue deleted the gs/fix_transp_opt branch February 23, 2021 23:52
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