diff --git a/tensorflow/python/estimator/BUILD b/tensorflow/python/estimator/BUILD index 0020eebff64..1c6b83740d6 100644 --- a/tensorflow/python/estimator/BUILD +++ b/tensorflow/python/estimator/BUILD @@ -6,7 +6,6 @@ package( py_library( name = "estimator_py", srcs = [ - "__init__.py", "estimator_lib.py", ], srcs_version = "PY2AND3", @@ -383,7 +382,6 @@ py_library( py_library( name = "inputs_queues", srcs = [ - "inputs/queues/__init__.py", "inputs/queues/feeding_functions.py", "inputs/queues/feeding_queue_runner.py", ], diff --git a/tensorflow/python/estimator/__init__.py b/tensorflow/python/estimator/__init__.py deleted file mode 100644 index 1e32161fbba..00000000000 --- a/tensorflow/python/estimator/__init__.py +++ /dev/null @@ -1,32 +0,0 @@ -# Copyright 2018 The TensorFlow Authors. All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== -"""estimator python module. - -Importing from tensorflow.python.estimator is unsupported -and will soon break! -""" -# pylint: disable=unused-import,g-bad-import-order,g-import-not-at-top,wildcard-import - -from __future__ import absolute_import -from __future__ import division -from __future__ import print_function - -from tensorflow_estimator.python import estimator - -# Include attrs that start with single underscore. -_HAS_DYNAMIC_ATTRIBUTES = True -estimator.__all__ = [s for s in dir(estimator) if not s.startswith('__')] - -from tensorflow_estimator.python.estimator import * diff --git a/tensorflow/python/estimator/canned/__init__.py b/tensorflow/python/estimator/canned/__init__.py deleted file mode 100644 index d640c8c15a5..00000000000 --- a/tensorflow/python/estimator/canned/__init__.py +++ /dev/null @@ -1,32 +0,0 @@ -# Copyright 2018 The TensorFlow Authors. All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== -"""canned python module. - -Importing from tensorflow.python.estimator is unsupported -and will soon break! -""" -# pylint: disable=unused-import,g-bad-import-order,g-import-not-at-top,wildcard-import - -from __future__ import absolute_import -from __future__ import division -from __future__ import print_function - -from tensorflow_estimator.python.estimator import canned - -# Include attrs that start with single underscore. -_HAS_DYNAMIC_ATTRIBUTES = True -canned.__all__ = [s for s in dir(canned) if not s.startswith('__')] - -from tensorflow_estimator.python.estimator.canned import * diff --git a/tensorflow/python/estimator/export/__init__.py b/tensorflow/python/estimator/export/__init__.py deleted file mode 100644 index 898efd46efb..00000000000 --- a/tensorflow/python/estimator/export/__init__.py +++ /dev/null @@ -1,32 +0,0 @@ -# Copyright 2018 The TensorFlow Authors. All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== -"""export python module. - -Importing from tensorflow.python.estimator is unsupported -and will soon break! -""" -# pylint: disable=unused-import,g-bad-import-order,g-import-not-at-top,wildcard-import - -from __future__ import absolute_import -from __future__ import division -from __future__ import print_function - -from tensorflow_estimator.python.estimator import export - -# Include attrs that start with single underscore. -_HAS_DYNAMIC_ATTRIBUTES = True -export.__all__ = [s for s in dir(export) if not s.startswith('__')] - -from tensorflow_estimator.python.estimator.export import * diff --git a/tensorflow/python/estimator/inputs/__init__.py b/tensorflow/python/estimator/inputs/__init__.py deleted file mode 100644 index 045ede224de..00000000000 --- a/tensorflow/python/estimator/inputs/__init__.py +++ /dev/null @@ -1,32 +0,0 @@ -# Copyright 2018 The TensorFlow Authors. All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== -"""inputs python module. - -Importing from tensorflow.python.estimator is unsupported -and will soon break! -""" -# pylint: disable=unused-import,g-bad-import-order,g-import-not-at-top,wildcard-import - -from __future__ import absolute_import -from __future__ import division -from __future__ import print_function - -from tensorflow_estimator.python.estimator import inputs - -# Include attrs that start with single underscore. -_HAS_DYNAMIC_ATTRIBUTES = True -inputs.__all__ = [s for s in dir(inputs) if not s.startswith('__')] - -from tensorflow_estimator.python.estimator.inputs import *