fix cmake python 2.7 test import fail

This commit is contained in:
fo40225 2018-07-11 19:09:57 +08:00
parent b50e7b980c
commit 53dd73a538
2 changed files with 4 additions and 1 deletions
tensorflow

View File

@ -28,7 +28,8 @@ contrib = LazyLoader('contrib', globals(), 'tensorflow.contrib')
del LazyLoader
from tensorflow.python.platform import flags # pylint: disable=g-import-not-at-top
app.flags = flags # pylint: disable=undefined-variable
from tensorflow.python.platform import app # pylint: disable=g-import-not-at-top
app.flags = flags
del absolute_import
del division

View File

@ -4,6 +4,8 @@ tensorflow
tensorflow/core
tensorflow/core/example
tensorflow/core/framework
tensorflow/core/kernels
tensorflow/core/kernels/boosted_trees
tensorflow/core/lib
tensorflow/core/lib/core
tensorflow/core/profiler