When building a complex model that uses many queues it is often difficult to
gather all the queue runners that need to be run. This convenience function
allows you to add a queue runner to a well known collection in the graph.
The companion method start_queue_runners() can be used to start threads for
all the collected queue runners.
Args
qr
A QueueRunner.
collection
A GraphKey specifying the graph collection to add
the queue runner to. Defaults to GraphKeys.QUEUE_RUNNERS.
[null,null,["Last updated 2020-10-01 UTC."],[],[],null,["# tf.train.queue_runner.add_queue_runner\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#L394-L411) |\n\nAdds a `QueueRunner` to a collection in the graph. (deprecated)\n\n#### View aliases\n\n\n**Main aliases**\n\n\\`tf.train.add_queue_runner\\`\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.add_queue_runner`](/api_docs/python/tf/compat/v1/train/add_queue_runner), [`tf.compat.v1.train.queue_runner.add_queue_runner`](/api_docs/python/tf/compat/v1/train/add_queue_runner)\n\n\u003cbr /\u003e\n\n tf.train.queue_runner.add_queue_runner(\n qr, 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\nWhen building a complex model that uses many queues it is often difficult to\ngather all the queue runners that need to be run. This convenience function\nallows you to add a queue runner to a well known collection in the graph.\n\nThe companion method `start_queue_runners()` can be used to start threads for\nall the collected queue runners.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Args ---- ||\n|--------------|--------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `qr` | A `QueueRunner`. |\n| `collection` | A `GraphKey` specifying the graph collection to add the queue runner to. Defaults to [`GraphKeys.QUEUE_RUNNERS`](../../../tf/GraphKeys#QUEUE_RUNNERS). |\n\n\u003cbr /\u003e"]]