From 57d97f49e963b2a9940d9231df20e9ceae05e66c Mon Sep 17 00:00:00 2001 From: "A. Unique TensorFlower" Date: Thu, 2 Mar 2017 11:26:43 -0800 Subject: Improved wording of MonitoredSession preemption error logging. Change: 149025947 --- tensorflow/python/training/monitored_session.py | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'tensorflow/python/training/monitored_session.py') 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 -- cgit v1.2.3