870e17a6857365bec3035bfece2e77b525288b01,exp.py,,test,#Any#,602
Before Change
parser.load_state_dict(saved_state)
if args.cuda: parser = parser.cuda()
parser.eval()
eval_results, decode_results = evaluation.evaluate(test_set.examples, parser, args,
verbose=args.verbose, return_decode_result=True)
After Change
args.lang = saved_args.lang
parser_cls = get_parser_class(saved_args.lang)
parser = parser_cls.load(model_path=args.load_model, cuda=args.cuda)
parser.eval()
evaluator = Registrable.by_name(args.evaluator)(transition_system)
eval_results, decode_results = evaluation.evaluate(test_set.examples, parser, evaluator, args,
verbose=args.verbose, return_decode_result=True)
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 4
Instances
Project Name: pcyin/tranX
Commit Name: 870e17a6857365bec3035bfece2e77b525288b01
Time: 2018-11-20
Author: pcyin@cs.cmu.edu
File Name: exp.py
Class Name:
Method Name: test
Project Name: eriklindernoren/PyTorch-YOLOv3
Commit Name: ac7bb33dd978e2bf6ecb0cf055dd6bf6c9c1ea05
Time: 2019-04-19
Author: eriklindernoren@live.se
File Name: train.py
Class Name:
Method Name:
Project Name: lcswillems/torch-rl
Commit Name: 3f196bcdd1e0310208e8978cf4f1fb590614568b
Time: 2018-04-15
Author: lcswillems@gmail.com
File Name: utils.py
Class Name:
Method Name: load_model
Project Name: pytorch/examples
Commit Name: 645c7c386e62d2fb1d50f4621c1a52645a13869f
Time: 2018-04-24
Author: soumith@gmail.com
File Name: word_language_model/generate.py
Class Name:
Method Name: