aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/python/training/session_manager.py
diff options
context:
space:
mode:
Diffstat (limited to 'tensorflow/python/training/session_manager.py')
-rw-r--r--tensorflow/python/training/session_manager.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/tensorflow/python/training/session_manager.py b/tensorflow/python/training/session_manager.py
index 360e02fb44..a00ceb9021 100644
--- a/tensorflow/python/training/session_manager.py
+++ b/tensorflow/python/training/session_manager.py
@@ -229,10 +229,14 @@ class SessionManager(object):
up to `max_wait_secs`, for recovery to succeed.
If the model cannot be recovered successfully then it is initialized by
- either running the provided `init_op`, or calling the provided `init_fn`.
- The local_init_op is also run after init_op and init_fn, regardless of
+ running the `init_op` and calling `init_fn` if they are provided.
+ The `local_init_op` is also run after init_op and init_fn, regardless of
whether the model was recovered successfully, but only if
- ready_for_local_init_op passes.
+ `ready_for_local_init_op` passes.
+
+ If the model is recovered from a checkpoint it is assumed that all
+ global variables have been initialized, in particular neither `init_op`
+ nor `init_fn` will be executed.
It is an error if the model cannot be recovered and no `init_op`
or `init_fn` or `local_init_op` are passed.