-
Notifications
You must be signed in to change notification settings - Fork 74k
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: #include nested too deeply (libtensorflow_cc.so) #41405
Comments
Provide the exact sequence of commands / steps that you executed before running into the problem.Thanks! |
A minimal example to reproduce this error would be the following: Build libtensorflow_cc.so
Create new project with the following CMakeLists.txt
And main.cpp
Then build the project |
Also @ezhulenev |
@gunan @rmlarsen @av8ramit @ezhulenev Any updates on this? |
Unfortunately, I'm not sure, maybe @rmlarsen may have more insight. |
I had same problem with TF2! |
Sorry, but I personally have not had cycles to look into libtensorflow_cc. I'll see if I can carve time in Q4. |
I see the same issue when using vim YCM completion as of tensorflow git 108aa90:
In particular,
This doesn't make sense(?) - it's a recursive include and it's anyway missing a header guard. At the very least, it's missing a comment on the intention. |
Same issue here using tensorflow 2.7 branch compiled from sources. |
does anyone able to solve this issue? |
@gunan @rmlarsen @av8ramit @ezhulenev Any updates on this? |
Hi @Lotte1990 , I am eager to know whether you got a chance to test with latest TF versions ? Correct me if I am wrong your build is success but when you use it in your program you are facing the issue right ?. Unfortunately I don't have the environment to test it. Please test with latest version and let us know if the issue still persists. |
@SuryanarayanaY Still present for TensorFlow 2.12.0. The file "third_party/eigen3/unsupported/Eigen/CXX11/Tensor" is still trying to include itself. First line:
As you say, building the DLL succeeds, but using the DLL afterwards in a different program is the problem. |
System information
Describe the problem
The problem occurs when using libtensorflow_cc.so. When including <tensorflow/core/public/session.h> in the main file of my program that uses libtensorflow_cc.so, it includes <tensorflow/core/framework/tensor.h>, which in turn includes <unsupported/Eigen/CXX11/Tensor>. This file includes itself and results in the error #include nested too deeply.
Provide the exact sequence of commands / steps that you executed before running into the problem
#include <tensorflow/core/public/session.h>
in the main file of my program that uses libtensorflow_cc.so.Any other info / logs
The text was updated successfully, but these errors were encountered: