baidu-research / warp-ctc

Fast parallel CTC.
Apache License 2.0
4.07k stars 1.04k forks source link

TF binding not working on tensorflow tensorflow-gpu (1.1.0) #80

Open ltn614 opened 7 years ago

ltn614 commented 7 years ago

I am facing the problem, I tried set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D_GLIBCXX_USE_CXX11_ABI=0") in CmakeList file, it doesn't work, also tried add -D_GLIBCXX_USE_CXX11_ABI=0 in setup.py, it doesn't work too, I paste my error message:

python lstm_warpCTC.py Traceback (most recent call last): File "lstm_warpCTC.py", line 10, in import warpctc_tensorflow File "/home/jason/anaconda3/lib/python3.5/site-packages/warpctc_tensorflow-0.1-py3.5-linux-x86_64.egg/warpctc_tensorflow/init.py", line 7, in _warpctc = tf.load_op_library(lib_file) File "/home/jason/anaconda3/lib/python3.5/site-packages/tensorflow/python/framework/load_library.py", line 64, in load_op_library None, None, error_msg, error_code) tensorflow.python.framework.errors_impl.NotFoundError: /home/jason/anaconda3/lib/python3.5/site-packages/warpctc_tensorflow-0.1-py3.5-linux-x86_64.egg/warpctc_tensorflow/kernels.cpython-35m-x86_64-linux-gnu.so: undefined symbol: _ZN10tensorflow7strings6StrCatB5cxx11ERKNS08AlphaNumES3

wellescastro commented 7 years ago

+1

stefbraun commented 7 years ago

+1

Elizabethcase commented 7 years ago

+1

dieka13 commented 7 years ago

+1

shahinkl commented 7 years ago

+1

matth commented 7 years ago

Ensure you delete the build and dist directories in the tensorflow_binding directory after applying fix, works for me

freesouls commented 7 years ago

happend to see the same problem when binding with tf 1.1.0, though python setup.py test can not run correctly, but I can still use warp-ctc by installing python setup.py install, it seems it does not affect the results