File tree Expand file tree Collapse file tree 1 file changed +0
-11
lines changed
Expand file tree Collapse file tree 1 file changed +0
-11
lines changed Original file line number Diff line number Diff line change 2121import platform
2222import logging
2323
24- try :
25- from packaging .version import Version
26- except ImportError :
27- from distutils .version import LooseVersion as Version
28-
2924import tensorflow as tf
3025
3126_TFA_BAZELRC = ".bazelrc"
@@ -136,11 +131,6 @@ def create_build_configuration():
136131 write ("build --strategy=Genrule=standalone" )
137132 write ("build -c opt" )
138133
139- if Version (tf .__version__ ) >= Version ("2.9.0" ):
140- glibcxx = '"-D_GLIBCXX_USE_CXX11_ABI=1"'
141- else :
142- glibcxx = '"-D_GLIBCXX_USE_CXX11_ABI=0"'
143-
144134 if is_windows ():
145135 write ("build --config=windows" )
146136 write ("build:windows --enable_runfiles" )
@@ -155,7 +145,6 @@ def create_build_configuration():
155145 write ("build --copt=-mavx" )
156146 write ("build --cxxopt=-std=c++14" )
157147 write ("build --host_cxxopt=-std=c++14" )
158- write ("build --cxxopt=" + glibcxx )
159148
160149 if os .getenv ("TF_NEED_CUDA" , "0" ) == "1" :
161150 print ("> Building GPU & CPU ops" )
You can’t perform that action at this time.
0 commit comments