22e535e23b4c2e95e7e72198ae98c7e0d4ac8c18,eval_lm.py,,main,#Any#,35
Before Change
models, args = utils.load_ensemble_for_inference(parsed_args.path.split(":"), task)
args.__dict__.update(parsed_args.__dict__)
print(args)
task.args = args
// Load dataset splits
After Change
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)
print("| {} {} {} examples".format(args.data, args.gen_subset, len(task.dataset(args.gen_subset))))
In pattern: SUPERPATTERN
Frequency: 4
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: elbayadm/attn2d
Commit Name: ff68a9ef501e7286501dba1719024dfaaab4b473
Time: 2018-06-15
Author: myleott@fb.com
File Name: eval_lm.py
Class Name:
Method Name: main