NVIDIA / nv-wavenet

Reference implementation of real-time autoregressive wavenet inference
BSD 3-Clause "New" or "Revised" License
735 stars 126 forks source link

Getting "undefined symbol" error when importing nv_wavenet_ext #92

Closed chaonan99 closed 5 years ago

chaonan99 commented 5 years ago

I'm getting "undefined symbol" error when importing nv_wavenet_ext as follows:

In [1]: import torch

In [2]: torch.__version__
Out[2]: '1.1.0'

In [3]: import nv_wavenet_ext
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-3-831f7004cefb> in <module>
----> 1 import nv_wavenet_ext

ImportError: /usr/local/lib/python3.6/site-packages/nv_wavenet_ext-0.0.0-py3.6-linux-x86_64.egg/nv_wavenet_ext.cpython-36m-x86_64-linux-gnu.so: undefined symbol: _ZN2at19UndefinedTensorImpl10_singletonE
dunbar12138 commented 5 years ago

Did you solve it? I have the same problem

chaonan99 commented 5 years ago

I solved it by cleaning up the repo, re-clone it and rebuild it. Also remember to always import torch before import nv_wavenet_ext