class_docstr: Base class of solver.
class_docstr_tok: ["Base","class","of","solver","."]
docstr: Get the scaffold.
docstr_tok: ["Get","the","scaffold","."]
code: def get_scaffold(self, mode, global_step=None):
      """Get the scaffold."""
      if mode != utils.TRAIN:
          # for model average
          saver = self.get_saver(global_step)
          scaffold = tf.train.Scaffold(saver=saver)
      else:
          scaffold = None  # default
      return scaffold
  
imports: import abc
  import math
  import delta.compat
  import tensorflow_addons
  from absl import logging
  from delta import utils
  from delta.utils import optimizer
  from delta.utils.register import registers
label_desc: Use image node_id 16 for calling the Solver obj's underlying member method code with example usage: obj.get_scaffold(mode, global_step) and returns: scaffold