Open guomingjin opened 3 years ago
Better use Ubuntu. Or you can find your tensorflow include path and manually add the path to the build options.
@zsyzzsoft I am really sorry I couldn't understand it. In what build options should I add the path? You meant I have to build tensorflow from source or just add the path to somewhere?
Can you find the folder where 'tensorflow/core/framework/op.h' is located?
No, there are no headers in 'tensorflow/core/framework' directory in site-packages folder.
If you installed tensorflow in a conda env you need to copy this folder:
C:\Users\USERNAME\anaconda3\envs\comod\Lib\site-packages\tensorflow
to
C:\Program Files.
That worked for me. Also using tensorflow-gpu.1.14 makes using GPU easy. Good Luck!
anyone solve this problem?
@MoZhengyang If the above mentioned solution does not work, the problem could be caused by the GCC compilation option while generating the so library. The GCC version of greater than 4 supports the c++11 standard itself, so the option -D_GLIBCXX_USE_CXX11_ABI = 0 is not required.
Change the line 127 code in ./dnnlib/tflib/custom_op.py.
from: - -compiler-options '-fPIC -D_GLIBCXX_USE_CXX11_ABI=0 to: --compiler-options '-fPIC -D_GLIBCXX_USE_CXX11_ABI=1
is there any new update? same on macOS
can I disable CUDA to run on Mac OS ?