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

Output a more helpful error if operator is unavailable due to build features #154

Open
robertknight opened this issue May 6, 2024 · 1 comment

Comments

@robertknight
Copy link
Owner

Some ONNX operators are only available if certain rten crate features are enabled. If rten is compiled with these features turned off and a user tries to run a model which requires them, they will get a generic error about the operator being unsupported, rather than telling them that they need to change the build settings. This might confuse them into thinking that RTen doesn't support the operator at all.

An example of affected operators are the Random* ops, which require enabling the random feature.

@robertknight
Copy link
Owner Author

A related issue is the case where a model was loaded with a subset of the normal operators available via Model::load_with_ops, and a user tries to load a model which requires an operator that was not included in the custom op registry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant