(self, mode, global_step=None)
return scaffold
Get the scaffold.
Get the scaffold.
Get the scaffold .
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
def get_scaffold ( self , mode , global_step = None ) : 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