-
Notifications
You must be signed in to change notification settings - Fork 347
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
How to wrap things up and where to place libtorch_cpu? #232
Comments
I'm not sure how rust related this is. Maybe you want to tweak your |
Thank you for the answer. Is it maybe somehow possible to set |
I'm not sure that is very easy to achieve, the rust build system does not let you set up arbitrary flag. You could try hacking around to get |
Alright, thank you for your answer and the suggestions. I will close this issue since it's not directly related to tch-rs. |
I have trained a model with Python and now I'm trying to deploy it with a simple rust executable.
Here's the short code snippet:
However, after building it, running
./main model.pt input.png
always returnserror while loading shared libraries: libtorch_cpu.so: cannot open shared object file: No such file or directory
Being new to Rust, I have no clue how to wrap things up so I can just pass a single executable to another linux machine. Any advice would be highly appreciated!
(Side question: Is it possible to use a statically linked version of libtorch to decrease file size? I'm aware that this would need analysis of my model as well...)
The text was updated successfully, but these errors were encountered: