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

compilation errors in tf_ops folders #54

Open
Imy16 opened this issue Aug 1, 2018 · 15 comments
Open

compilation errors in tf_ops folders #54

Imy16 opened this issue Aug 1, 2018 · 15 comments

Comments

@Imy16
Copy link

Imy16 commented Aug 1, 2018

I am using Tensorflow 1.2.1( virtual environment) and cuda 8.0.
While running the compile scripts in op folders , I get the following errors:


fatal error: tensorflow/core/framework/op.h: No such file or directory
#include "tensorflow/core/framework/op.h"
tf_sampling.cpp:6:42: fatal error: tensorflow/core/framework/op.h: No such file or directory
#include "tensorflow/core/framework/op.h"


Have you any idea how to solve those errors.
Thanks in advance.

@17862979438
Copy link

@Omar-Tag
Copy link

Omar-Tag commented Aug 3, 2018

I think u should change all the paths directory in the codes into tensorflow framework folder on ur pc, i remembered that i faced the same problems when trying to run the training and it might leads you to several similar errors which will need unto do the same solution several time

@Imy16
Copy link
Author

Imy16 commented Aug 3, 2018

@Omar-Tag Thanks for your reply.
Are you using tensorflow with virtual environment?
I changed the path of tensorflow in grouping and sampling foldors of 'tf_ops' but still get the same errors !

@Omar-Tag
Copy link

Omar-Tag commented Aug 3, 2018

@Imy16 No i am using ubuntu 16

@Imy16
Copy link
Author

Imy16 commented Aug 3, 2018

@Omar-Tag Finally I found the solution ! :D
I installed two versions of Tensorflow (one with simple pip (1.0) and the other with virtual environment (1.2))
I was confusing the path of the two installed versions of tensorflow..
Just I fixed the path and compiled the tf ops while the virtual environment is activated.
Thanks Omar :)

@ghost
Copy link

ghost commented Oct 15, 2018

I wonder if you have solved it. I meet it, try change all the paths, but can't work out.

@Imy16
Copy link
Author

Imy16 commented Oct 15, 2018

@UCASJingKun Yes, I solved it.
I was just confusing the path of Tensorflow's two installed versions.
Try to change all the paths directory in the codes into tensorflow framework folder on your pc
and compile the tf ops while the virtual environment is activated if you're using Tensorflow with virtual environment.

@ghost
Copy link

ghost commented Oct 19, 2018

thanks, I have solved it.

@ccu1tn
Copy link

ccu1tn commented May 26, 2019

Dear @Omar-Tag @UCASJingKun

I have the same as your errors. But when I change location tensorflow path it is not changed for me.
This my location
nn2
And this my new path I want to change in /.bashrc file
nn1
Please give me some your idea
many thank

@Omar-Tag
Copy link

@ccu1tn you dont change the path of tensorflow , what we mean above , is that you should change the paths that is used in the code to the correct paths relevent to each pc , what happened with @Imy16 abd @UCASJingKun is that they were confused with the existence of two tensorflow's version on their environment so they used the wrong directories

@ccu1tn
Copy link

ccu1tn commented May 28, 2019 via email

@usherbob
Copy link

@ccu1tn Actually, you need to change the tensorflow path and CUDA path in tf_xxx_compile.sh.

@Esteban-25
Copy link

Hi,
could you tell me what the commands are to retrieve both the TensorFlow and CUDA paths in my computer? I'm using Ubuntu 18.04
Thanks!

@usherbob
Copy link

usherbob commented Feb 27, 2020

Usually ~/anaconda/envs/env_name/lib/python2.7/site-packages/tensorflow if using Anaconda.

Hi,
could you tell me what the commands are to retrieve both the TensorFlow and CUDA paths in my computer? I'm using Ubuntu 18.04
Thanks!

@Esteban-25
Copy link

@usherbob, thanks, but I am not using Anaconda.
I would just like to know the commands in a (linux) terminal that would let me retrieve both paths easily. I assume such commands wouldn't change if I were using a virtual environment, though the paths themselves might?

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

6 participants