3578019be301ae9d8e9b7518daa5fb113d00d2db,open_seq2seq/utils/funcs.py,,evaluate,#Any#Any#,149
Before Change
inputs_per_batch, outputs_per_batch = get_batches_for_epoch(model,
checkpoint)
eval_dict = model.maybe_evaluate(inputs_per_batch, outputs_per_batch)
deco_print("Finished evaluation")
return eval_dict
After Change
def evaluate(model, checkpoint):
inputs_per_batch, outputs_per_batch = restore_and_get_batches(model,
checkpoint)
if not model.on_horovod or model.hvd.rank() == 0:
eval_dict = model.maybe_evaluate(inputs_per_batch, outputs_per_batch)
deco_print("Finished evaluation")
return eval_dict
else:
return None
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 9
Instances
Project Name: NVIDIA/OpenSeq2Seq
Commit Name: 3578019be301ae9d8e9b7518daa5fb113d00d2db
Time: 2018-05-07
Author: igor.a.gitman@gmail.com
File Name: open_seq2seq/utils/funcs.py
Class Name:
Method Name: evaluate
Project Name: NVIDIA/OpenSeq2Seq
Commit Name: f310d41373c2451a9556edcd8b47960d286035ee
Time: 2018-08-24
Author: okuchaiev@nvidia.com
File Name: open_seq2seq/utils/hooks.py
Class Name: PrintLossAndTimeHook
Method Name: after_run
Project Name: NVIDIA/OpenSeq2Seq
Commit Name: 3578019be301ae9d8e9b7518daa5fb113d00d2db
Time: 2018-05-07
Author: igor.a.gitman@gmail.com
File Name: open_seq2seq/utils/funcs.py
Class Name:
Method Name: infer
Project Name: NVIDIA/OpenSeq2Seq
Commit Name: 3578019be301ae9d8e9b7518daa5fb113d00d2db
Time: 2018-05-07
Author: igor.a.gitman@gmail.com
File Name: open_seq2seq/utils/hooks.py
Class Name: RunEvaluationHook
Method Name: after_run