aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--tensorflow/__init__.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/tensorflow/__init__.py b/tensorflow/__init__.py
index 92d390a976..0bca6f8fb8 100644
--- a/tensorflow/__init__.py
+++ b/tensorflow/__init__.py
@@ -37,3 +37,16 @@ class _LazyContribLoader(object):
contrib = _LazyContribLoader()
+
+del absolute_import
+del division
+del print_function
+
+# These symbols appear because we import the python package which
+# in turn imports from tensorflow.core and tensorflow.python. They
+# must come from this module. So python adds these symbols for the
+# resolution to succeed.
+# pylint: disable=undefined-variable
+del python
+del core
+# pylint: enable=undefined-variable