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

Can't quote ‘tree_filter_cuda’, can you tell me what is the reason please? #3

Open
Kobeee0614 opened this issue Oct 14, 2019 · 3 comments

Comments

@Kobeee0614
Copy link

Can't quote ‘tree_filter_cuda’, can you tell me what is the reason please?
ImportError: /home/jason/notebook/TreeFilter-Torch/furnace/kernels/lib_tree_filter/tree_filter_cuda.cpython-37m-x86_64-linux-gnu.so: undefined symbol: _ZN6caffe26detail36_typeMetaDataInstance_preallocated_7E

@StevenGrove
Copy link
Collaborator

Since the tree filter kernel relies on some components of the PyTorch, please executing "import torch" before "import tree_filter_cuda".

@Kobeee0614
Copy link
Author

Yes, I imported torch before import tree_filter_cuda, but it seems that this solution is not.import torch from torch import nn import torch.distributed as dist from torch.autograd import Function import tree_filter_cuda as _C

@StevenGrove
Copy link
Collaborator

StevenGrove commented Oct 15, 2019

This could be caused by the inconsistent version of PyTorch between compiling and runtime. You can try to reinstall PyTorch and refresh the environment, or rerun the installation procedure. In addition, a similar issue has been solved at link.

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