pytorch/extension-cpp

undefined sympol

Closed this issue · 1 comments

When I follow the tutorial and try "python test/test_extension.py", I found this error below:

Traceback (most recent call last):
  File "/gemini/code/extension-cpp-master/test/test_extension.py", line 5, in <module>
    import extension_cpp
  File "/root/miniconda3/lib/python3.11/site-packages/extension_cpp/__init__.py", line 2, in <module>
    from . import _C, ops
ImportError: /root/miniconda3/lib/python3.11/site-packages/extension_cpp/_C.cpython-311-x86_64-linux-gnu.so: undefined symbol: _ZN5torch3jit11parseSchemaERKSsb

Does anyone know how to fix this?

I find this comment that can solve my problem.