Skip to content
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

invalid ELF header #4

Closed
PhoQus opened this issue Apr 23, 2021 · 2 comments
Closed

invalid ELF header #4

PhoQus opened this issue Apr 23, 2021 · 2 comments

Comments

@PhoQus
Copy link

PhoQus commented Apr 23, 2021

When trying to run your code I get the following error, do you have any suggestions as to what I might be doing wrong?

(base) anders@CenturionUbuntu:~/PycharmProjects/Spice/SPICE$ python tools/eval_self.py --config-file configs/cifar10/eval.py --weight model_zoo/model_cifar10.pth.tar --all 1
Traceback (most recent call last):
File "tools/eval_self.py", line 12, in
import torch
File "/home/anders/anaconda3/lib/python3.8/site-packages/torch/init.py", line 188, in
_load_global_deps()
File "/home/anders/anaconda3/lib/python3.8/site-packages/torch/init.py", line 141, in _load_global_deps
ctypes.CDLL(lib_path, mode=ctypes.RTLD_GLOBAL)
File "/home/anders/anaconda3/lib/python3.8/ctypes/init.py", line 381, in init
self._handle = _dlopen(self._name, mode)
OSError: /home/anders/anaconda3/lib/python3.8/site-packages/torch/lib/../../../../libcufft.so.10: invalid ELF header

@PhoQus
Copy link
Author

PhoQus commented Apr 23, 2021

I am running Ubuntu 20.04.1 LTS

@niuchuangnn
Copy link
Owner

@PhoQus It seems that your errors occur at 'import torch', so I suggest you check if your torch has been correctly installed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants