Move importing Estimator to after API_PLACEHOLDER text in template.
PiperOrigin-RevId: 225041387
This commit is contained in:
parent
9b964193d9
commit
74ba359321
@ -20,14 +20,14 @@ from __future__ import print_function as _print_function
|
|||||||
|
|
||||||
import os as _os
|
import os as _os
|
||||||
|
|
||||||
|
# API IMPORTS PLACEHOLDER
|
||||||
|
|
||||||
# pylint: disable=g-bad-import-order
|
# pylint: disable=g-bad-import-order
|
||||||
from tensorflow.python.tools import component_api_helper as _component_api_helper
|
from tensorflow.python.tools import component_api_helper as _component_api_helper
|
||||||
_component_api_helper.package_hook(
|
_component_api_helper.package_hook(
|
||||||
parent_package_str=__name__,
|
parent_package_str=__name__,
|
||||||
child_package_str=('tensorflow_estimator.python.estimator.api.estimator'))
|
child_package_str=('tensorflow_estimator.python.estimator.api.estimator'))
|
||||||
|
|
||||||
# API IMPORTS PLACEHOLDER
|
|
||||||
|
|
||||||
# Make sure directory containing top level submodules is in
|
# Make sure directory containing top level submodules is in
|
||||||
# the __path__ so that "from tensorflow.foo import bar" works.
|
# the __path__ so that "from tensorflow.foo import bar" works.
|
||||||
# We're using bitwise, but there's nothing special about that.
|
# We're using bitwise, but there's nothing special about that.
|
||||||
|
@ -23,13 +23,13 @@ import os as _os
|
|||||||
# pylint: disable=g-bad-import-order
|
# pylint: disable=g-bad-import-order
|
||||||
from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import
|
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
|
from tensorflow.python.tools import component_api_helper as _component_api_helper
|
||||||
_component_api_helper.package_hook(
|
_component_api_helper.package_hook(
|
||||||
parent_package_str=__name__,
|
parent_package_str=__name__,
|
||||||
child_package_str=('tensorflow_estimator.python.estimator.api.estimator'))
|
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
|
from tensorflow.python.util.lazy_loader import LazyLoader # pylint: disable=g-import-not-at-top
|
||||||
contrib = LazyLoader('contrib', globals(), 'tensorflow.contrib')
|
contrib = LazyLoader('contrib', globals(), 'tensorflow.contrib')
|
||||||
del LazyLoader
|
del LazyLoader
|
||||||
|
@ -23,12 +23,12 @@ import os as _os
|
|||||||
# pylint: disable=g-bad-import-order
|
# pylint: disable=g-bad-import-order
|
||||||
from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import
|
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
|
from tensorflow.python.tools import component_api_helper as _component_api_helper
|
||||||
_component_api_helper.package_hook(
|
_component_api_helper.package_hook(
|
||||||
parent_package_str=__name__,
|
parent_package_str=__name__,
|
||||||
child_package_str=('tensorflow_estimator.python.estimator.api.estimator'))
|
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
|
from tensorflow.python.platform import flags # pylint: disable=g-import-not-at-top
|
||||||
app.flags = flags # pylint: disable=undefined-variable
|
app.flags = flags # pylint: disable=undefined-variable
|
||||||
|
Loading…
Reference in New Issue
Block a user