Skip to content

Commit

Permalink
Run _TPUPollingThread as a daemon thread
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 263609561
  • Loading branch information
jysohn23 authored and tensorflower-gardener committed Aug 15, 2019
1 parent 928ec43 commit 36e672c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tensorflow/python/tpu/preempted_hook.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ class _TPUPollingThread(threading.Thread):
def __init__(self, cluster, session):
super(_TPUPollingThread, self).__init__()

self.daemon = True
self._running = True
self._session_closed = False
self._cluster = cluster
Expand Down

0 comments on commit 36e672c

Please sign in to comment.