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

undefined symbol: _ZTIN10tensorflow8OpKernelE_ #32

Open
thanhkien84 opened this issue Nov 26, 2018 · 3 comments
Open

undefined symbol: _ZTIN10tensorflow8OpKernelE_ #32

thanhkien84 opened this issue Nov 26, 2018 · 3 comments
Labels

Comments

@thanhkien84
Copy link

thanhkien84 commented Nov 26, 2018

While running the demo code:
python demo.py --image utils/examples/plane.png

I got this error:
Traceback (most recent call last):
File "demo.py", line 3, in
from pixel2mesh.models import GCN
File "build/bdist.linux-x86_64/egg/pixel2mesh/models.py", line 3, in
from pixel2mesh.losses import *
File "build/bdist.linux-x86_64/egg/pixel2mesh/losses.py", line 2, in
from pixel2mesh.cd_dist import *
File "build/bdist.linux-x86_64/egg/pixel2mesh/cd_dist.py", line 3, in
nn_distance_module=tf.load_op_library('./external/tf_nndistance_so.so')
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/load_library.py", line 60, in load_op_library
lib_handle = py_tf.TF_LoadLibrary(library_filename)
tensorflow.python.framework.errors_impl.NotFoundError: ./external/tf_nndistance_so.so: undefined symbol: _ZTIN10tensorflow8OpKernelE

Does anyone experience this?
My specs: Ubuntu 18.04, CUDA 10.0, CuDNN 7.4, Tensorflow 1.12, OpenCV 3.4.3.

@rubilin
Copy link

rubilin commented Nov 30, 2018

You can refer to this URL:https://www.cnblogs.com/danpe/p/7825357.html,
Because the TF_LIB compilation parameter is missing from the makefile,You should modify this file,
I add TF_LIB =/usr/local/lib/python2.7/dist-packages/tensorflow
I modify :tf_nndistance_so.so: tf_nndistance_g.cu.o tf_nndistance.cpp
g++ -std=c++11 tf_nndistance.cpp tf_nndistance_g.cu.o -o tf_nndistance_so.so -shared -fPIC -I $(tensorflow) -lcudart -L $(cudalib) -O2 -L $(TF_LIB) -ltensorflow_framework -D_GLIBCXX_USE_CXX11_ABI=0

@nitthilan
Copy link

I made the above change and still get the same error. Did anyone find a fix?

@hguomin
Copy link

hguomin commented Jan 27, 2019

I made the above change and still get the same error. Did anyone find a fix?

did you install tensorflow with conda? if so, try to create a new env and install tf with pip, then this issue shall be fixed

hguomin pushed a commit to hguomin/Pixel2Mesh that referenced this issue Jan 27, 2019
@walsvid walsvid added the compile label Nov 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants