'Sets up the function to restore inception variables from checkpoint.'

def setup_inception_initializer(self):

    if (self.mode != 'inference'):
        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
