tf.train.WorkerSessionCreator
Stay organized with collections
Save and categorize content based on your preferences.
Creates a tf.compat.v1.Session for a worker.
Inherits From: SessionCreator
tf.train.WorkerSessionCreator(
scaffold=None, master='', config=None, max_wait_secs=(30 * 60)
)
Args |
scaffold
|
A Scaffold used for gathering or building supportive ops. If
not specified a default one is created. It's used to finalize the graph.
|
master
|
String representation of the TensorFlow master to use.
|
config
|
ConfigProto proto used to configure the session.
|
max_wait_secs
|
Maximum time to wait for the session to become available.
|
Methods
create_session
View source
create_session()
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2020-10-01 UTC.
[null,null,["Last updated 2020-10-01 UTC."],[],[],null,["# tf.train.WorkerSessionCreator\n\n\u003cbr /\u003e\n\n|------------------------------------------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v1.15.0/tensorflow/python/training/monitored_session.py#L651-L688) |\n\nCreates a tf.compat.v1.Session for a worker.\n\nInherits From: [`SessionCreator`](../../tf/train/SessionCreator)\n\n#### View aliases\n\n\n**Compat aliases for migration**\n\nSee\n[Migration guide](https://www.tensorflow.org/guide/migrate) for\nmore details.\n\n[`tf.compat.v1.train.WorkerSessionCreator`](/api_docs/python/tf/compat/v1/train/WorkerSessionCreator)\n\n\u003cbr /\u003e\n\n tf.train.WorkerSessionCreator(\n scaffold=None, master='', config=None, max_wait_secs=(30 * 60)\n )\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Args ---- ||\n|-----------------|-----------------------------------------------------------------------------------------------------------------------------------------|\n| `scaffold` | A `Scaffold` used for gathering or building supportive ops. If not specified a default one is created. It's used to finalize the graph. |\n| `master` | `String` representation of the TensorFlow master to use. |\n| `config` | `ConfigProto` proto used to configure the session. |\n| `max_wait_secs` | Maximum time to wait for the session to become available. |\n\n\u003cbr /\u003e\n\nMethods\n-------\n\n### `create_session`\n\n[View source](https://github.com/tensorflow/tensorflow/blob/v1.15.0/tensorflow/python/training/monitored_session.py#L685-L688) \n\n create_session()"]]