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

raise an exception when TreeEnsemble request a feature out of boundaries #12859

Merged
merged 3 commits into from
Sep 7, 2022

Conversation

xadupre
Copy link
Member

@xadupre xadupre commented Sep 5, 2022

Description:

Addresses issue #12679, onnxruntime raises an exception instead of crashing. onnxruntime may access an element outside the boundary of the input tensor. It nows checks the input tensor is not too small compare to the highest feature index found in the ensemble.

Motivation and Context

Gives the user a better error message and avoid random crashes.

skottmckay
skottmckay previously approved these changes Sep 6, 2022
Copy link
Contributor

@skottmckay skottmckay left a comment

Choose a reason for hiding this comment

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

Would be great if a unit test could be added.

@xadupre
Copy link
Member Author

xadupre commented Sep 6, 2022

done

Copy link
Contributor

@skottmckay skottmckay left a comment

Choose a reason for hiding this comment

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

:shipit:

@xadupre xadupre merged commit 400195a into microsoft:main Sep 7, 2022
@xadupre xadupre deleted the tree_error branch January 13, 2023 11:04
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