piper: Build fails with onnxruntime 1.13.1
Hi, wanted to check out larynx2 through nixpkgs and noticed that it doesn’t compile with onnxruntime 1.13.1, but works with 1.12.1. Just a heads up.
larnyx> [ 50%] Building CXX object CMakeFiles/larynx.dir/main.cpp.o
larnyx> In file included from /build/source/src/cpp/larynx.hpp:13,
larnyx> from /build/source/src/cpp/main.cpp:15:
larnyx> /build/source/src/cpp/model.hpp: In function 'void larynx::loadModel(std::string, larynx::ModelSession&)':
larnyx> /build/source/src/cpp/model.hpp:57:22: error: 'struct Ort::Session' has no member named 'GetInputName'
larnyx> 57 | session.onnx.GetInputName(i, session.allocator));
larnyx> | ^~~~~~~~~~~~
larnyx> /build/source/src/cpp/model.hpp:62:22: error: 'struct Ort::Session' has no member named 'GetOutputName'
larnyx> 62 | session.onnx.GetOutputName(i, session.allocator));
larnyx> | ^~~~~~~~~~~~~
larnyx> make[2]: *** [CMakeFiles/larynx.dir/build.make:76: CMakeFiles/larynx.dir/main.cpp.o] Error 1
larnyx> make[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/larynx.dir/all] Error 2
larnyx> make: *** [Makefile:91: all] Error 2
Am I correct to assume that the models are tied to the onnxruntime version?
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 21 (9 by maintainers)
Also, thank you for packaging this up 🙂
2 options here that come to my mind:
nix-store -r some/store/paththat pulls from a binary cache.I think option 1. better explored and you may want to start with that. I have used something like option 2 but in my case the nix-daemon was simply installed into the host.
Or maybe I got you wrong and you just want one container with nix and stores all its files outside? Maybe you can elaborate what features and goals you are trying to achieve with this setup - I now the nix code daemon code and container namespaces in a general a bit, so I might have an idea what problems you might face.