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

Make verifyInputTensor true by default #3079

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

chentong319
Copy link
Collaborator

When the input to the model is not generated according to the model signature, the provided input may not match the signature and cause weird errors. Turning the check on by default will detect such errors. The overhead should be neglectable even for a toy model.

Signed-off-by: Chen Tong <[email protected]>
Copy link
Collaborator

@tungld tungld left a comment

Choose a reason for hiding this comment

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

LGTM!

@chentong319
Copy link
Collaborator Author

@tungld Thanks for approval. But the test failed. I did some investigation. The reason is for dialect defined type: !onnx.String. I will save this to issue and fix it later.

Signed-off-by: Chen Tong <[email protected]>
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