TreeFilter-Torch icon indicating copy to clipboard operation
TreeFilter-Torch copied to clipboard

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

Open Kobeee0614 opened this issue 6 years ago • 3 comments

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

Kobeee0614 avatar Oct 14 '19 13:10 Kobeee0614

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

StevenGrove avatar Oct 14 '19 13:10 StevenGrove

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

Kobeee0614 avatar Oct 14 '19 14:10 Kobeee0614

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.

StevenGrove avatar Oct 15 '19 08:10 StevenGrove