View source on GitHub |
Starts all queue runners collected in the graph. (deprecated)
tf.compat.v1.train.start_queue_runners(
sess=None,
coord=None,
daemon=True,
start=True,
collection=ops.GraphKeys.QUEUE_RUNNERS
)
Migrate to TF2
QueueRunners are not compatible with eager execution. Instead, please use tf.data to get data into your model.
Description
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.
Raises | |
---|---|
ValueError
|
if sess is None and there isn't any default session.
|
TypeError
|
if sess is not a tf.compat.v1.Session object.
|
Returns | |
---|---|
A list of threads. |
Raises | |
---|---|
RuntimeError
|
If called with eager execution enabled. |
ValueError
|
If called without a default tf.compat.v1.Session registered.
|