This is a companion method to add_queue_runner(). It just starts
threads for all queue runners collected in the graph. It returns
the list of all threads.
Args
sess
Session used to run the queue ops. Defaults to the
default session.
coord
Optional Coordinator for coordinating the started threads.
daemon
Whether the threads should be marked as daemons, meaning
they don't block program exit.
start
Set to False to only create the threads, not start them.
collection
A GraphKey specifying the graph collection to
get the queue runners from. Defaults to GraphKeys.QUEUE_RUNNERS.
Raises
ValueError
if sess is None and there isn't any default session.
[null,null,["Last updated 2020-10-01 UTC."],[],[],null,["# tf.train.queue_runner.start_queue_runners\n\n\u003cbr /\u003e\n\n|------------------------------------------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v1.15.0/tensorflow/python/training/queue_runner_impl.py#L414-L480) |\n\nStarts all queue runners collected in the graph. (deprecated)\n\n#### View aliases\n\n\n**Main aliases**\n\n\\`tf.train.start_queue_runners\\`\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.queue_runner.start_queue_runners`](/api_docs/python/tf/compat/v1/train/start_queue_runners), [`tf.compat.v1.train.start_queue_runners`](/api_docs/python/tf/compat/v1/train/start_queue_runners)\n\n\u003cbr /\u003e\n\n tf.train.queue_runner.start_queue_runners(\n sess=None, coord=None, daemon=True, start=True,\n collection=tf.GraphKeys.QUEUE_RUNNERS\n )\n\n| **Warning:** THIS FUNCTION IS DEPRECATED. It will be removed in a future version. Instructions for updating: To construct input pipelines, use the [`tf.data`](../../../tf/data) module.\n\nThis is a companion method to `add_queue_runner()`. It just starts\nthreads for all queue runners collected in the graph. It returns\nthe list of all threads.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Args ---- ||\n|--------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `sess` | `Session` used to run the queue ops. Defaults to the default session. |\n| `coord` | Optional `Coordinator` for coordinating the started threads. |\n| `daemon` | Whether the threads should be marked as `daemons`, meaning they don't block program exit. |\n| `start` | Set to `False` to only create the threads, not start them. |\n| `collection` | A `GraphKey` specifying the graph collection to get the queue runners from. Defaults to [`GraphKeys.QUEUE_RUNNERS`](../../../tf/GraphKeys#QUEUE_RUNNERS). |\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Raises ------ ||\n|--------------|--------------------------------------------------------------------------|\n| `ValueError` | if `sess` is None and there isn't any default session. |\n| `TypeError` | if `sess` is not a [`tf.compat.v1.Session`](../../../tf/Session) object. |\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ------- ||\n|---|---|\n| A list of threads. ||\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Raises ------ ||\n|----------------|---------------------------------------------------------------------------------------|\n| `RuntimeError` | If called with eager execution enabled. |\n| `ValueError` | If called without a default [`tf.compat.v1.Session`](../../../tf/Session) registered. |\n\n\u003cbr /\u003e\n\n#### Eager Compatibility\n\nNot compatible with eager execution. To ingest data under eager execution,\nuse the [`tf.data`](../../../tf/data) API instead."]]