libtch/torch_api.cpp is not found
# help
i
Hello there I'm quite new to rust, and i'm trying to deploy my project using tch (libtorch c++ bindings for rust) on shuttle.rs Here is the library that i am using https://github.com/LaurentMazare/tch-rs The deployment keep failing and gives me this warning :
warning: libtch/torch_api.cpp:1:9: fatal error: torch/csrc/autograd/engine.h: No such file or directory
Is there a way to access C++ PyTorch library (libtorch) in version v2.0.0 from shuttle.rs env ? Do you have any advice on how to solve my issue ? Any help would be greatly appreciated, thank you in advance
g
The deployment container does not have any external libraries pre-installed, and there is not yet an official way to add them. I have managed to find a dirty work-around in the mean time https://github.com/shuttle-hq/shuttle/issues/703#issuecomment-1515606621
i
Thanks a lot for your reply @gentle-ice-1561 I'll try this asap
g
@icy-book-87465 did it work? 👀
i
I have tried a few things following your workaround, but was not able to solve my issue I will try again when i have more time