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

Reorder keras outputs if possible #1480

Merged
merged 2 commits into from
Apr 28, 2021

Conversation

TomWildenhain-Microsoft
Copy link
Contributor

Signed-off-by: Tom Wildenhain tomwi@microsoft.com

Signed-off-by: Tom Wildenhain <tomwi@microsoft.com>
@TomWildenhain-Microsoft TomWildenhain-Microsoft enabled auto-merge (squash) April 27, 2021 22:25
@@ -322,6 +322,11 @@ def from_keras(model, input_signature=None, opset=None, custom_ops=None, custom_
initialized_tables = None
tensors_to_rename = tensor_names_from_structed(concrete_func, input_names, output_names)

if model.output_names:
# model.output_names is an optional field of Keras models indicating output order. It is None if unused.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Interestingly for the huggingface models this is None. But on some other models it is present.

@TomWildenhain-Microsoft TomWildenhain-Microsoft merged commit 82a4f69 into master Apr 28, 2021
@TomWildenhain-Microsoft TomWildenhain-Microsoft deleted the tom/reorder_keras_outputs branch April 28, 2021 05:53
zerollzeng pushed a commit to zerollzeng/tensorflow-onnx that referenced this pull request May 16, 2021
Signed-off-by: Tom Wildenhain <tomwi@microsoft.com>
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