aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/contrib/cluster_resolver
diff options
context:
space:
mode:
authorGravatar Mark Daoust <markdaoust@google.com>2018-01-31 08:16:59 -0800
committerGravatar Michael Case <mikecase@google.com>2018-01-31 17:02:49 -0800
commita55c018ded951ff4530557026fc97e9e6736a336 (patch)
treebf8262515d963c4a016b1b34417b096265ead42b /tensorflow/contrib/cluster_resolver
parent76b390539b296af43c9d3f4b5cfe0dfbf5b3cfd6 (diff)
Fix docs generation for cluster_resolvers
Adds "cluster_resolver_pip" as a dependancy to opensource contrib, and applies a standard `remove_undocumented` to clear extra symbols. Docs are build from a bazel bulid, and without this change the cluster resolvers are not directly accessible in "tf.contirb.cluster_resolver" during the docs build, so they do not get documented. PiperOrigin-RevId: 183993115
Diffstat (limited to 'tensorflow/contrib/cluster_resolver')
-rw-r--r--tensorflow/contrib/cluster_resolver/BUILD1
-rw-r--r--tensorflow/contrib/cluster_resolver/__init__.py12
2 files changed, 13 insertions, 0 deletions
diff --git a/tensorflow/contrib/cluster_resolver/BUILD b/tensorflow/contrib/cluster_resolver/BUILD
index 15abd2be03..80e18a43a7 100644
--- a/tensorflow/contrib/cluster_resolver/BUILD
+++ b/tensorflow/contrib/cluster_resolver/BUILD
@@ -34,6 +34,7 @@ py_library(
":cluster_resolver_py",
":gce_cluster_resolver_py",
":tpu_cluster_resolver_py",
+ "//tensorflow/python:util",
],
)
diff --git a/tensorflow/contrib/cluster_resolver/__init__.py b/tensorflow/contrib/cluster_resolver/__init__.py
index d17501e87e..b4d8cd4a7c 100644
--- a/tensorflow/contrib/cluster_resolver/__init__.py
+++ b/tensorflow/contrib/cluster_resolver/__init__.py
@@ -26,3 +26,15 @@ from tensorflow.contrib.cluster_resolver.python.training.cluster_resolver import
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
+
+from tensorflow.python.util.all_util import remove_undocumented
+
+_allowed_symbols = [
+ 'ClusterResolver',
+ 'SimpleClusterResolver',
+ 'UnionClusterResolver',
+ 'GceClusterResolver',
+ 'TPUClusterResolver',
+]
+
+remove_undocumented(__name__, _allowed_symbols)