Skip to content

Update the way to check input_signature in from_function(). #1947

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 4 commits into from
May 25, 2022
Merged

Update the way to check input_signature in from_function(). #1947

merged 4 commits into from
May 25, 2022

Conversation

fatcat-z
Copy link
Collaborator

When a function was converted to an ONNX model, the input_signature will be checked. The logic is we want to check if the input_signature is None, but the current way may make a mistake for some inputs which are not TensorSpec but still valid, so correct it.

@fatcat-z fatcat-z requested review from hwangdeyu and guschmue May 24, 2022 09:48
@fatcat-z fatcat-z self-assigned this May 24, 2022
@fatcat-z
Copy link
Collaborator Author

This PR will resolve one issue in #1848.

Signed-off-by: Jay Zhang <[email protected]>
Copy link
Contributor

@hwangdeyu hwangdeyu left a comment

Choose a reason for hiding this comment

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

LGTM!

@fatcat-z fatcat-z merged commit e099356 into onnx:main May 25, 2022
@fatcat-z fatcat-z deleted the update_func_check branch May 25, 2022 09:10
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