def load_log(fname):
    with change_recursion_limit(config.recursion_limit):
        with open(fname, 'rb') as f:
            from_disk = load(f)
        # TODO: Load "dumped" experiments

    if isinstance(from_disk, TrainingLog):
        log = from_disk
    elif isinstance(from_disk, MainLoop):
        log = from_disk.log
        del from_disk
    else:
        raise ValueError("Could not load '{}': Unrecognized content.")

    return log
Load a :class:`TrainingLog` object from disk.
dataset/ETHPy150Open mila-udem/blocks-extras/blocks_extras/scripts/plot.py/load_log