class_docstr: 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."""
  
      if not self._sync_optimizer:
          return
  
      tf.logging.info("Found SyncReplicasOptimizer. Initializing.")
  
      (
          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 __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from __future__ import unicode_literals
  import abc
  import os
  import numpy
  import six
  import yaml
  import tensorflow
  from tensorflow.python.training.basic_session_run_hooks import SecondOrStepTimer
  from tensorflow.python.training import session_manager
  from tensorflow.python.client import timeline
  from tensorflow import gfile
  from seq2seq.configurable import Configurable, abstractstaticmethod
  from seq2seq import graph_utils, global_vars
label_desc: Use image node_id 4 for calling the SyncReplicasOptimizerHook obj's underlying member method code with example usage: obj.after_create_session(session, coord) without return types