22e535e23b4c2e95e7e72198ae98c7e0d4ac8c18,eval_lm.py,,main,#Any#,35

Before Change


    print("| loading model(s) from {}".format(parsed_args.path))
    models, args = utils.load_ensemble_for_inference(parsed_args.path.split(":"), task)

    args.__dict__.update(parsed_args.__dict__)
    print(args)

    task.args = args

After Change


    models, args = utils.load_ensemble_for_inference(parsed_args.path.split(":"), task)

    for arg in vars(parsed_args).keys():
        if arg not in {"self_target", "future_target", "past_target", "tokens_per_sample", "output_size_dictionary"}:
            setattr(args, arg, getattr(parsed_args, arg))
    task = tasks.setup_task(args)

    // Load dataset splits
    task.load_dataset(args.gen_subset)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: pytorch/fairseq
Commit Name: 22e535e23b4c2e95e7e72198ae98c7e0d4ac8c18
Time: 2018-09-30
Author: alexei.b@gmail.com
File Name: eval_lm.py
Class Name:
Method Name: main


Project Name: markovmodel/PyEMMA
Commit Name: 4a8d4b647b79b5d0cea572d5951395bf98ba97c8
Time: 2017-11-28
Author: m.scherer@fu-berlin.de
File Name: pyemma/_base/serialization/serialization.py
Class Name: SerializableMixIn
Method Name: __getstate__