import tensorflow as tf

        message = (
            'Cannot resume an existing run since the logging directory does not '
            'contain a configuration file.')
        raise IOError(message)
    with tf.gfile.GFile(config_path, 'r') as file_:
        print('try to load')
        config = yaml.load(file_, yaml.Loader)
        message = 'Resume run and write summaries and checkpoints to {}.'
