class_docstr: Solver for raw tensorflow model.
class_docstr_tok: ["Solver","for","raw","tensorflow","model","."]
docstr: Get training scaffold.
docstr_tok: ["Get","training","scaffold","."]
code: def get_scaffold(self, mode, global_step=None, iter_initializer=None):
      """Get training scaffold."""
  
      init_op = tf.global_variables_initializer()
      if iter_initializer is None:
          local_init_op = tf.tables_initializer()
      else:
          local_init_op = tf.group(
              tf.tables_initializer(), iter_initializer
          )
      saver = self.get_saver(global_step)
      scaffold = tf.train.Scaffold(
          saver=saver, init_op=init_op, local_init_op=local_init_op
      )
      return scaffold
  
imports: import re
  import math
  import numpy
  import delta.compat
  from absl import logging
  from delta.utils.solver.base_solver import Solver
  from delta import utils
  from delta.utils.register import registers
  from delta.utils.solver.utils.solver_utils import get_checkpoint_dir
  from delta.utils.solver.utils.solver_utils import get_ckpt_state
  from delta.utils.solver.utils.solver_utils import get_session_conf
  from delta.utils.solver.utils.solver_utils import to_saved_model
  from delta.utils.solver.utils.solver_utils import run_metrics
label_desc: Use image node_id 6 for calling the RawSolver obj's underlying member method code with example usage: obj.get_scaffold(mode, global_step, iter_initializer) and returns: scaffold