(self)
Sets up the function to restore inception variables from checkpoint.
Sets up the function to restore inception variables from checkpoint.
Sets up the function to restore inception variables from checkpoint .
def setup_inception_initializer(self):
    """Sets up the function to restore inception variables from checkpoint."""
    if self.mode != "inference":
      # Restore inception variables only.
      saver = tf.train.Saver(self.inception_variables)

      def restore_fn(sess):
        tf.logging.info("Restoring Inception variables from checkpoint file %s",
                        self.config.inception_checkpoint_file)
        saver.restore(sess, self.config.inception_checkpoint_file)

      self.init_fn = restore_fn
def setup_inception_initializer ( self ) : if self . mode != "inference" : # Restore inception variables only. saver = tf . train . Saver ( self . inception_variables ) def restore_fn ( sess ) : tf . logging . info ( "Restoring Inception variables from checkpoint file %s" , self . config . inception_checkpoint_file ) saver . restore ( sess , self . config . inception_checkpoint_file ) self . init_fn = restore_fn