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
Question about undefined symbol #6
Comments
The most likely reason is that the pytorch version you used to build the operator is different from the pytorch version you used to run experiments. Please double check the python env/pytorch version and try to rebuild the operators (don't forget to delete |
Thanks for the reply. Below are the versions of my pythond and pytorch. Also, I just followed your suggestions. But still got the same issue. Is there anything I missed or misunderstood? Thanks. |
Try to run The warning can be just ignored. |
Below is the result of following your suggestions. ====
|
can you show me the output of the operator building? |
Do you mean this? ====
====
|
I think you can find solution here: pytorch/extension-cpp#6 (comment). I'm surprised that |
Do I add |
|
Thanks. I might have a little progress, but still got an error below. I google it, which might be related to my cuda version: NVlabs/PWC-Net#11
|
I never saw this issue before. Probably changing cuda version would solve it. From my side cuda 9.1/gcc 4.9.4 works for me |
Hi, have you solved this problem ? I meet the same one, but I have no idea about that. |
After downgrading CUDA to 9.1, this was solved. |
Hi, I also have this same issue. I followed the instruction cited here but still not work(add flags after cxx && nvcc), my torch version and cuda version is all the same. Any further suggestions? Thanks. |
Please check your CUDA path in profile. |
Hello,Your cuda is 9.1, then what version of gcc can run the network? |
My version is GCC 7.3.0. |
ImportError: upsnet/../upsnet/operators/_ext/deform_conv/deform_conv_cuda.cpython-36m-x86_64-linux-gnu.so: undefined symbol: _ZN3c105ErrorC1ENS_14SourceLocationERKSs Also -D_GLIBCXX_USE_CXX11_ABI=0 is there while compilation. Torch version 1.0.1 What could be the problem ? |
Below is the error message I got. Not so sure about how to fix it. Could you help me with this? Thanks.
====
UPSNet_ROOT$ python upsnet/upsnet_end2end_train.py --cfg upsnet/experiments/upsnet_resnet50_coco.yaml
upsnet/../upsnet/config/config.py:180: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
exp_config = edict(yaml.load(f))
Traceback (most recent call last):
File "upsnet/upsnet_end2end_train.py", line 61, in
from upsnet.models import *
File "upsnet/../upsnet/models/init.py", line 1, in
from .resnet_upsnet import resnet_50_upsnet, resnet_101_upsnet
File "upsnet/../upsnet/models/resnet_upsnet.py", line 22, in
from upsnet.models.resnet import get_params, resnet_rcnn, ResNetBackbone
File "upsnet/../upsnet/models/resnet.py", line 21, in
from upsnet.operators.modules.deform_conv import DeformConv
File "upsnet/../upsnet/operators/modules/deform_conv.py", line 22, in
from upsnet.operators.functions.deform_conv import DeformConvFunction
File "upsnet/../upsnet/operators/functions/deform_conv.py", line 21, in
from .._ext.deform_conv import deform_conv_cuda
ImportError: upsnet/../upsnet/operators/_ext/deform_conv/deform_conv_cuda.cpython-36m-x86_64-linux-gnu.so: undefined symbol: _ZN2at19UndefinedTensorImpl10_singletonE
The text was updated successfully, but these errors were encountered: