From 53dd73a538916cbfd96877c95dfd42eb6b92ed1c Mon Sep 17 00:00:00 2001 From: fo40225 Date: Wed, 11 Jul 2018 19:09:57 +0800 Subject: fix cmake python 2.7 test import fail --- tensorflow/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tensorflow/__init__.py') diff --git a/tensorflow/__init__.py b/tensorflow/__init__.py index 440e9f8dbd..21677512b6 100644 --- a/tensorflow/__init__.py +++ b/tensorflow/__init__.py @@ -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 -- cgit v1.2.3