-
Notifications
You must be signed in to change notification settings - Fork 10
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
ONNXruntime interface #420
Conversation
20DM
commented
Oct 27, 2023
- Add a draft interface for ONNXruntime
- Add unit tests to check model loading, metadata loading and forward folding of the classifier
- Add an example ONNXrt file constructed from one of Tobías's PyTorch models
When trying to get this to compile with the pre-compiled onnxruntime binary I added the following to the top level CMakeLists:
The hard-coded path can naturally be replaced by a variable I also had to change references to |
Okay so when I install using conan2 I got "Trying to register schema ... already registered ... " and it seems like this is coming from the fact that
I also make sure that The other thing is it might be worth mentioning in the instructions in the readme that with |
Interestingly, even with the double registration, the tests still passed (now that they've been fixed). But it is handy to not have hundreds of error messages first! |
This should already be our default anyway, no? |
Conan will use your compiler's default C++ when building dependencies, so for me it was defaulting to C++14. I had to set it to use c++17 explicitly to make things work. |
Sorry, I misremembered: In Purify we're specifying the C++ standard but not in Sopt. I'll add it to Sopt as well. |
Ah no, actually we're doing this already:
|
…into cg_ort_interface