diff options
author | A. Unique TensorFlower <gardener@tensorflow.org> | 2017-03-02 11:26:43 -0800 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2017-03-02 11:49:37 -0800 |
commit | 57d97f49e963b2a9940d9231df20e9ceae05e66c (patch) | |
tree | f1d296de2fbf0fafb4bccfab0b2f8558ea58e0ed /tensorflow/python/training/monitored_session.py | |
parent | ab49d4c449d11ebe2a8531d8eafaa2a0ca981e41 (diff) |
Improved wording of MonitoredSession preemption error logging.
Change: 149025947
Diffstat (limited to 'tensorflow/python/training/monitored_session.py')
-rw-r--r-- | tensorflow/python/training/monitored_session.py | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/tensorflow/python/training/monitored_session.py b/tensorflow/python/training/monitored_session.py index e2e4b50cb6..8c4dc0cad8 100644 --- a/tensorflow/python/training/monitored_session.py +++ b/tensorflow/python/training/monitored_session.py @@ -803,9 +803,10 @@ class _RecoverableSession(_WrappedSession): try: return self._sess_creator.create_session() except _PREEMPTION_ERRORS as e: - logging.info('An error was raised during initialization. ' - 'It\'s most likely due to a preemption in a connected ' - 'worker/ps. A new session will be created. Error: %s', e) + logging.info('An error was raised while a session was being created. ' + 'This may be due to a preemption of a connected worker ' + 'or parameter server. A new session will be created. ' + 'Error: %s', e) def run(self, fetches, feed_dict=None, options=None, run_metadata=None): while True: @@ -817,10 +818,10 @@ class _RecoverableSession(_WrappedSession): options=options, run_metadata=run_metadata) except _PREEMPTION_ERRORS as e: - logging.info('An error was raised. Closing the current session. ' - 'It\'s most likely due to a preemption in a connected ' - 'worker/ps. A new session will be created on the next ' - 'session.run(). Error: %s', e) + logging.info('An error was raised. This may be due to a preemption in ' + 'a connected worker or parameter server. The current ' + 'session will be closed and a new session will be ' + 'created. Error: %s', e) self.close() self._sess = None |