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

ImportError Libtorch_cpu.so: undefined symbol #5

Open
EnnioEvo opened this issue Apr 13, 2022 · 1 comment
Open

ImportError Libtorch_cpu.so: undefined symbol #5

EnnioEvo opened this issue Apr 13, 2022 · 1 comment

Comments

@EnnioEvo
Copy link

Thank you for this awesome work

Unfortunately I can't run the training because I get the following error

./tools/dist_train.sh ./configs/panformer/panformer_r50_24e_coco_panoptic.py 1
+ CONFIG=./configs/panformer/panformer_r50_24e_coco_panoptic.py
+ GPUS=1
+ PORT=29503
++ dirname ./tools/dist_train.sh
++ dirname ./tools/dist_train.sh
+ PYTHONPATH=./tools/..:
+ python -m torch.distributed.launch --nproc_per_node=1 --master_port=29503 ./tools/train.py ./configs/panformer/panformer_r50_24e_coco_panoptic.py --launcher pytorch --deterministic
Traceback (most recent call last):
  File "/home/vision/anaconda3/envs/psf/lib/python3.7/runpy.py", line 183, in _run_module_as_main
    mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
  File "/home/vision/anaconda3/envs/psf/lib/python3.7/runpy.py", line 109, in _get_module_details
    __import__(pkg_name)
  File "/home/vision/anaconda3/envs/psf/lib/python3.7/site-packages/torch/__init__.py", line 197, in <module>
    from torch._C import *  # noqa: F403
ImportError: /home/vision/anaconda3/envs/psf/lib/python3.7/site-packages/torch/lib/libtorch_cpu.so: undefined symbol: _ZNK3c1010TensorImpl23shallow_copy_and_detachERKNS_15VariableVersionEb

This is my environment:

screen
screen1

@Janet-H
Copy link

Janet-H commented Oct 10, 2023

I have the same problem as yours, do you salve it ?

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