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

import error: run benchmark.py #18

Closed
xuleyoung opened this issue Jun 5, 2019 · 1 comment
Closed

import error: run benchmark.py #18

xuleyoung opened this issue Jun 5, 2019 · 1 comment

Comments

@xuleyoung
Copy link

when I run
python benchmark.py cpu

Traceback (most recent call last):
File "benchmark.py", line 8, in
from spatial_correlation_sampler import SpatialCorrelationSampler
File "/media/data2/xly/anaconda3/lib/python3.7/site-packages/spatial_correlation_sampler-0.1.0-py3.7-linux-x86_64.egg/spatial_correlation_sampler/init.py", line 1, in
from .spatial_correlation_sampler import SpatialCorrelationSampler, SpatialCorrelationSamplerFunction, spatial_correlation_sample
File "/media/data2/xly/anaconda3/lib/python3.7/site-packages/spatial_correlation_sampler-0.1.0-py3.7-linux-x86_64.egg/spatial_correlation_sampler/spatial_correlation_sampler.py", line 6, in
import spatial_correlation_sampler_backend as correlation
ImportError: /media/data2/xly/anaconda3/lib/python3.7/site-packages/spatial_correlation_sampler-0.1.0-py3.7-linux-x86_64.egg/spatial_correlation_sampler_backend.cpython-37m-x86_64-linux-gnu.so: undefined symbol: _Z25correlation_cuda_backwardN2at6TensorES0_S0_iiiiiiiiii

@xuleyoung
Copy link
Author

Hi,
I modify the *.cu file.
commet
#include <torch/extension.h>
then add
#include<torch/serialize/tensor.h>
I don't why ,but it works.
thank you.

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

1 participant