W3cubDocs

/TensorFlow Python

tf.contrib.cluster_resolver.SimpleClusterResolver

Class SimpleClusterResolver

Inherits From: ClusterResolver

Defined in tensorflow/contrib/cluster_resolver/python/training/cluster_resolver.py.

Simple implementation of ClusterResolver that accepts a ClusterSpec.

Methods

__init__

__init__(
    cluster_spec,
    master=''
)

Creates a SimpleClusterResolver from a ClusterSpec.

cluster_spec

cluster_spec()

Returns the ClusterSpec passed into the constructor.

master

master()

Returns the master address to use when creating a session.

© 2018 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_docs/python/tf/contrib/cluster_resolver/SimpleClusterResolver