diff options
Diffstat (limited to 'tensorflow/docs_src/programmers_guide/threading_and_queues.md')
-rw-r--r-- | tensorflow/docs_src/programmers_guide/threading_and_queues.md | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tensorflow/docs_src/programmers_guide/threading_and_queues.md b/tensorflow/docs_src/programmers_guide/threading_and_queues.md index 7f3e6f0da5..3483c7533c 100644 --- a/tensorflow/docs_src/programmers_guide/threading_and_queues.md +++ b/tensorflow/docs_src/programmers_guide/threading_and_queues.md @@ -97,6 +97,9 @@ Any thread can decide that the computation should stop. It only has to call return `True`. ```python +# Using Python's threading library. +import threading + # Thread body: loop until the coordinator indicates a stop was requested. # If some condition becomes true, ask the coordinator to stop. def MyLoop(coord): |