From 74ba3593214d5efd173ac91ed2c2f2bc3d58232e Mon Sep 17 00:00:00 2001 From: Michael Case Date: Tue, 11 Dec 2018 11:38:37 -0800 Subject: [PATCH] Move importing Estimator to after API_PLACEHOLDER text in template. PiperOrigin-RevId: 225041387 --- tensorflow/api_template.__init__.py | 4 ++-- tensorflow/api_template_v1.__init__.py | 4 ++-- tensorflow/compat_template_v1.__init__.py | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tensorflow/api_template.__init__.py b/tensorflow/api_template.__init__.py index d81cf067eb0..4eba763129a 100644 --- a/tensorflow/api_template.__init__.py +++ b/tensorflow/api_template.__init__.py @@ -20,14 +20,14 @@ from __future__ import print_function as _print_function import os as _os +# API IMPORTS PLACEHOLDER + # pylint: disable=g-bad-import-order from tensorflow.python.tools import component_api_helper as _component_api_helper _component_api_helper.package_hook( parent_package_str=__name__, child_package_str=('tensorflow_estimator.python.estimator.api.estimator')) -# API IMPORTS PLACEHOLDER - # Make sure directory containing top level submodules is in # the __path__ so that "from tensorflow.foo import bar" works. # We're using bitwise, but there's nothing special about that. diff --git a/tensorflow/api_template_v1.__init__.py b/tensorflow/api_template_v1.__init__.py index 65bdb6cb1b5..21b52776146 100644 --- a/tensorflow/api_template_v1.__init__.py +++ b/tensorflow/api_template_v1.__init__.py @@ -23,13 +23,13 @@ import os as _os # pylint: disable=g-bad-import-order from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import +# API IMPORTS PLACEHOLDER + from tensorflow.python.tools import component_api_helper as _component_api_helper _component_api_helper.package_hook( parent_package_str=__name__, child_package_str=('tensorflow_estimator.python.estimator.api.estimator')) -# API IMPORTS PLACEHOLDER - from tensorflow.python.util.lazy_loader import LazyLoader # pylint: disable=g-import-not-at-top contrib = LazyLoader('contrib', globals(), 'tensorflow.contrib') del LazyLoader diff --git a/tensorflow/compat_template_v1.__init__.py b/tensorflow/compat_template_v1.__init__.py index 7df80ec0124..d58acde09f0 100644 --- a/tensorflow/compat_template_v1.__init__.py +++ b/tensorflow/compat_template_v1.__init__.py @@ -23,12 +23,12 @@ import os as _os # pylint: disable=g-bad-import-order from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import +# API IMPORTS PLACEHOLDER + from tensorflow.python.tools import component_api_helper as _component_api_helper _component_api_helper.package_hook( parent_package_str=__name__, child_package_str=('tensorflow_estimator.python.estimator.api.estimator')) -# API IMPORTS PLACEHOLDER - from tensorflow.python.platform import flags # pylint: disable=g-import-not-at-top app.flags = flags # pylint: disable=undefined-variable