tf.train.Server.create_local_server(config=None, start=True)

tf.train.Server.create_local_server(config=None, start=True)

Creates a new single-process cluster running on the local host.

This method is a convenience wrapper for creating a tf.train.Server with a tf.train.ServerDef that specifies a single-process cluster containing a single task in a job called "local".

Args:

  • config: (Options.) A tf.ConfigProto that specifies default configuration options for all sessions that run on this server.
  • start: (Optional.) Boolean, indicating whether to start the server after creating it. Defaults to True.

Returns:

A local tf.train.Server.

Defined in tensorflow/python/training/server_lib.py.