![]() |
Starts all queue runners collected in the graph. (deprecated)
Aliases:
tf.compat.v1.train.queue_runner.start_queue_runners
tf.compat.v1.train.start_queue_runners
tf.train.start_queue_runners
tf.train.queue_runner.start_queue_runners(
sess=None,
coord=None,
daemon=True,
start=True,
collection=tf.GraphKeys.QUEUE_RUNNERS
)
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
: OptionalCoordinator
for coordinating the started threads.daemon
: Whether the threads should be marked asdaemons
, meaning they don't block program exit.start
: Set toFalse
to only create the threads, not start them.collection
: AGraphKey
specifying the graph collection to get the queue runners from. Defaults toGraphKeys.QUEUE_RUNNERS
.
Raises:
ValueError
: ifsess
is None and there isn't any default session.TypeError
: ifsess
is not atf.compat.v1.Session
object.
Returns:
A list of threads.
Raises:
RuntimeError
: If called with eager execution enabled.ValueError
: If called without a defaulttf.compat.v1.Session
registered.
Eager Compatibility
Not compatible with eager execution. To ingest data under eager execution,
use the tf.data
API instead.