e4f51e18508dc20ca379025108e59490dd59a6e0,eval_lm.py,,main,#Any#,17
Before Change
def main(args):
assert args.path is not None, "--path required for evaluation!"
args.tokens_per_sample = getattr(args, "tokens_per_sample", 1024)
print(args)
use_cuda = torch.cuda.is_available() and not args.cpu
After Change
def main(parsed_args):
assert parsed_args.path is not None, "--path required for evaluation!"
print(parsed_args)
use_cuda = torch.cuda.is_available() and not parsed_args.cpu
task = tasks.setup_task(parsed_args)
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
Instances Project Name: pytorch/fairseq
Commit Name: e4f51e18508dc20ca379025108e59490dd59a6e0
Time: 2018-09-03
Author: alexei.b@gmail.com
File Name: eval_lm.py
Class Name:
Method Name: main
Project Name: AIRLab-POLIMI/mushroom
Commit Name: f43e34a990ef0f9bfa6ac055c79a2f62c6b6b322
Time: 2020-04-22
Author: boris.ilpossente@hotmail.it
File Name: mushroom_rl/core/serialization.py
Class Name: Serializable
Method Name: save
Project Name: rusty1s/pytorch_geometric
Commit Name: 01b293b84fd2b1eeb80a01afe44d341d9c9c6486
Time: 2018-04-29
Author: matthias.fey@tu-dortmund.de
File Name: torch_geometric/sparse/sparse.py
Class Name:
Method Name: SparseTensor