Skip to content
This repository has been archived by the owner on Apr 1, 2021. It is now read-only.

Cannot Import torch_tvm #93

Open
scnakandala opened this issue Aug 20, 2019 · 2 comments
Open

Cannot Import torch_tvm #93

scnakandala opened this issue Aug 20, 2019 · 2 comments

Comments

@scnakandala
Copy link

I have installed the torch nightly build (torch-1.3.0.dev20190819-cp36-cp36m-linux_x86_64.whl) and successfully build torch_tvm.

However, when I try to import torch_tvm I get the following error:

>>> import torch_tvm
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/hummingbird/.local/lib/python3.6/site-packages/torch_tvm/__init__.py", line 9, in <module>
    from ._torch_tvm import *
ImportError: /home/hummingbird/.local/lib/python3.6/site-packages/torch_tvm/_torch_tvm.cpython-36m-x86_64-linux-gnu.so: undefined symbol: _ZN5torch3jit16SubgraphRewriter22RegisterRewritePatternERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES9_

Do I need to add anything to the library path?

@bwasti
Copy link
Contributor

bwasti commented Aug 20, 2019

this seems similar to issue #77 - please try this fix:
#77 (comment)

@un-knight
Copy link

@scnakandala Hi! Did you fix the problem? I got the same error.

@MaxBareiss MaxBareiss mentioned this issue Feb 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants