-
Notifications
You must be signed in to change notification settings - Fork 353
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
Can you help me setting environment variables? #871
Comments
for me it was an extra "include" and "torch" if you have a trailing one for autograd stuff, the issue could be they are in separate areas of the torch directory tree (py310) [2024-05-24T08:29:36-0400]
if we only "include" /api/include/ then we're missing the /autograd/ sadly the build script isn't working right now with latest pytorch i guess, this line linked above might need to also include the /pytorch/torch/csrc/autograd/ ugh i could try it locally |
I only set two variables like this export LIBTORCH=/home/test/libtorch
export LD_LIBRARY_PATH=/home/test/libtorch/lib/:$LD_LIBRARY_PATH and it works. |
I have the exact same issue, with only LIBTORCH, LIBTORCH_INCLUDE and LIBTORCH_LIB set. I am using "libtorch-shared-with-deps-2.5.0+rocm6.2.zip". Maybe this is the trouble source?? |
This is all I've done in terminal
Then I made a rust-bert project that requires tch-rs. Here is the error when I do cargo run of this project.
There must be something wrong when setting environment variables, but I can't figure out. Can you help with this?
The text was updated successfully, but these errors were encountered: