class_docstr: A SessionRunHook handles ops related to SyncReplicasOptimizer.
class_docstr_tok: ["A","SessionRunHook","handles","ops","related","to","SyncReplicasOptimizer","."]
docstr: Runs SyncReplicasOptimizer initialization ops.
docstr_tok: ["Runs","SyncReplicasOptimizer","initialization","ops","."]
code: def after_create_session(self, session, coord):
      """Runs SyncReplicasOptimizer initialization ops."""
      (
          local_init_success,
          msg,
      ) = session_manager._ready(  # pylint: disable=protected-access
          self._ready_for_local_init_op,
          session,
          "Model is not ready for SyncReplicasOptimizer local init.",
      )
      if not local_init_success:
          raise RuntimeError(
              "Init operations did not make model ready for SyncReplicasOptimizer "
              "local_init. Init op: %s, error: %s"
              % (self._local_init_op.name, msg)
          )
      session.run(self._local_init_op)
      if self._init_tokens_op is not None:
          session.run(self._init_tokens_op)
      if self._q_runner is not None:
          self._q_runner.create_threads(
              session, coord=coord, daemon=True, start=True
          )
  
imports: from tensorflow.python.distribute import distribute_lib
  from tensorflow.python.framework import indexed_slices
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import tensor
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import control_flow_ops
  from tensorflow.python.ops import data_flow_ops
  from tensorflow.python.ops import state_ops
  from tensorflow.python.ops import variable_v1
  from tensorflow.python.ops import variables
  from tensorflow.python.platform import tf_logging
  from tensorflow.python.training import optimizer
  from tensorflow.python.training import queue_runner
  from tensorflow.python.training import session_manager
  from tensorflow.python.training import session_run_hook
  from tensorflow.python.util import deprecation
  from tensorflow.python.util.tf_export import tf_export
label_desc: Use image node_id 3 for calling the _SyncReplicasOptimizerHook obj's underlying member method code with example usage: obj.after_create_session(session, coord) without return types