2e507d3cb43073a5656c7d3e74deef0b6a3fec04,eval_lm.py,,main,#Any#,32
Before Change
dataset=task.dataset(args.gen_subset),
max_tokens=args.max_tokens or 36000,
max_sentences=args.max_sentences,
max_positions=models[0].max_positions(),
num_shards=args.num_shards,
shard_id=args.shard_id,
ignore_invalid_inputs=True,
After Change
dataset=task.dataset(args.gen_subset),
max_tokens=args.max_tokens or 36000,
max_sentences=args.max_sentences,
max_positions=utils.resolve_max_positions(*[
model.max_positions() for model in models
]),
num_shards=args.num_shards,
shard_id=args.shard_id,
ignore_invalid_inputs=True,
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 8
Instances
Project Name: elbayadm/attn2d
Commit Name: 2e507d3cb43073a5656c7d3e74deef0b6a3fec04
Time: 2018-09-03
Author: myleott@fb.com
File Name: eval_lm.py
Class Name:
Method Name: main
Project Name: pytorch/fairseq
Commit Name: 2e507d3cb43073a5656c7d3e74deef0b6a3fec04
Time: 2018-09-03
Author: myleott@fb.com
File Name: generate.py
Class Name:
Method Name: main