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

torch.ops.load_library("build/libadd2.so") error #4

Open
longzeyilang opened this issue May 7, 2021 · 4 comments
Open

torch.ops.load_library("build/libadd2.so") error #4

longzeyilang opened this issue May 7, 2021 · 4 comments

Comments

@longzeyilang
Copy link

Traceback (most recent call last):
File "time.py", line 60, in
torch.ops.load_library("build/libadd2.so")
File "/home/gzy/anaconda3/envs/pytorch1.7/lib/python3.6/site-packages/torch/_ops.py", line 105, in load_library
ctypes.CDLL(path)
File "/home/gzy/anaconda3/envs/pytorch1.7/lib/python3.6/ctypes/init.py", line 348, in init
self._handle = _dlopen(self._name, mode)
OSError: /home/gzy/NN-CUDA-Example/pytorch/build/libadd2.so: undefined symbol: THPVariableClass

@LeslieZhoa
Copy link

Have you solved the question? I found the same question, and I don't know how to solve.

@longzeyilang
Copy link
Author

not yet

@godweiyang
Copy link
Owner

I came across the same error before, but forget how to solve it.
It may because of the incorrect version or environment varibles.

@GeneralJing
Copy link

OSError: /xxx/NN-CUDA-Example/pytorch/build/libadd2.so: undefined symbol: _ZNK3c106IValue23reportToTensorTypeErrorEv
similarly question。

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

4 participants