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

Error when compilng RoiPoolingLayer #12

Closed
tzrtzr000 opened this issue Sep 18, 2017 · 2 comments
Closed

Error when compilng RoiPoolingLayer #12

tzrtzr000 opened this issue Sep 18, 2017 · 2 comments

Comments

@tzrtzr000
Copy link

tzrtzr000 commented Sep 18, 2017

Hi I have tried both ways to compile the RoiPooingLayer. the first one has following error :

python -c 'import tensorflow as tf; tf.load_o
p_library("PARENT_DIR/scene-graph-TF-release-master/lib/roi_pooling_layer/roi_pooling_op_gpu_cuda8.so")'
Traceback (most recent call last):
File "<string>", line 1, in
File "TENSORFLOW_PATH/lib/python2.7/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: TENSORFLOW_PATH/scene-graph-TF-release-master/lib/roi_pooling_layer/roi_pooling_op_gpu_cuda8.so: undefined symbol: _ZN10tensorflow11TensorShapeC1Ev

There are similar problems in TFFRCNN issue post(CharlesShang/TFFRCNN#2).
The solution for it is to add -D_GLIBCXX_USE_CXX11_ABI=0 g++ compile flag in make.sh, whereas in this version there is no make.sh. Then I tried to add this extra flag on sefl by myself. Then following error appears:

nvcc -std=c++11 -c -o roi_pooling_op_gpu.cu.o
roi_pooling_op_gpu.cu.cc -I $TF_INC -D GOOGLE_CUDA=1 -x cu -Xcompiler -fPIC
roi_pooling_op_gpu.cu.cc:9:57: fatal error: tensorflow/core/user_ops/roi_pooling_op_gpu.h: No such file or directory
Note that I MANUALLY created .../user_ops/ and move every file under .../src/ to .../user_ops/. since there is no such folder before and maybe this is the problem.

Please help me out! Thanks !!!

@tzrtzr000 tzrtzr000 changed the title Error when comping RoiPoolingLayer Error when compilng RoiPoolingLayer Sep 18, 2017
@tzrtzr000
Copy link
Author

Problem solved by using Tensorflow r0.11

@danfeiX danfeiX closed this as completed Oct 24, 2017
@nicholasmireles
Copy link

I have the same issue ("fatal error: tensorflow/core/user_ops/roi_pooling_op_gpu.h: No such file or directory") and it persists after I installed the correct version of tensorflow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants