tf.train.LooperThread.loop(coord, timer_interval_secs, target, args=None, kwargs=None)
Start a LooperThread that calls a function periodically.
If timer_interval_secs
is None the thread calls target(args)
repeatedly. Otherwise target(args)
is called every timer_interval_secs
seconds. The thread terminates when a stop of the coordinator is requested.
coord
: A Coordinator.timer_interval_secs
: Number. Time boundaries at which to call target
.target
: A callable object.args
: Optional arguments to pass to target
when calling it.kwargs
: Optional keyword arguments to pass to target
when calling it.The started thread.
Defined in tensorflow/python/training/coordinator.py
.
© 2017 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_docs/python/tf/train/LooperThread/loop