diff options
author | Frank Chen <frankchn@google.com> | 2017-07-31 12:49:32 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2017-07-31 12:53:06 -0700 |
commit | 7ebed6678c2f378a5e28c8bade99866718dbdc7e (patch) | |
tree | 45c1260925029a37460e3235664fa2ccd92d84e3 /tensorflow/contrib/cluster_resolver | |
parent | 21faf19d036a0baed397fde896536248a5b85fba (diff) |
Add __init__.py to the contrib/cluster_resolver directory so that the Cluster Resolver classes within this are visible to open source TensorFlow users.
PiperOrigin-RevId: 163733781
Diffstat (limited to 'tensorflow/contrib/cluster_resolver')
-rw-r--r-- | tensorflow/contrib/cluster_resolver/BUILD | 5 | ||||
-rw-r--r-- | tensorflow/contrib/cluster_resolver/__init__.py | 28 |
2 files changed, 32 insertions, 1 deletions
diff --git a/tensorflow/contrib/cluster_resolver/BUILD b/tensorflow/contrib/cluster_resolver/BUILD index 9d27d3c161..48ddbe7dfa 100644 --- a/tensorflow/contrib/cluster_resolver/BUILD +++ b/tensorflow/contrib/cluster_resolver/BUILD @@ -23,7 +23,10 @@ filegroup( py_library( name = "cluster_resolver_pip", - srcs = ["python/training/__init__.py"], + srcs = [ + "__init__.py", + "python/training/__init__.py", + ], srcs_version = "PY2AND3", deps = [ ":cluster_resolver_py", diff --git a/tensorflow/contrib/cluster_resolver/__init__.py b/tensorflow/contrib/cluster_resolver/__init__.py new file mode 100644 index 0000000000..d17501e87e --- /dev/null +++ b/tensorflow/contrib/cluster_resolver/__init__.py @@ -0,0 +1,28 @@ +# Copyright 2017 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. +# ============================================================================= + +"""Standard imports for Cluster Resolvers.""" + +from __future__ import absolute_import +from __future__ import division +from __future__ import print_function + +# pylint: disable=wildcard-import,unused-import +from tensorflow.contrib.cluster_resolver.python.training.cluster_resolver import ClusterResolver +from tensorflow.contrib.cluster_resolver.python.training.cluster_resolver import SimpleClusterResolver +from tensorflow.contrib.cluster_resolver.python.training.cluster_resolver import UnionClusterResolver +from tensorflow.contrib.cluster_resolver.python.training.gce_cluster_resolver import GceClusterResolver +from tensorflow.contrib.cluster_resolver.python.training.tpu_cluster_resolver import TPUClusterResolver +# pylint: enable=wildcard-import,unused-import |