86793391e38bf88c119699bfb1993cb0a7a33968,fairseq/trainer.py,Trainer,load_checkpoint,#Trainer#Any#Any#Any#Any#Any#,177
Before Change
del extra_state["train_meters"]
// reset TimeMeters, since their start times don"t make sense anymore
for meter in self.meters.values():
if isinstance(meter, TimeMeter):
meter.reset()
else:
print("| no existing checkpoint found {}".format(filename))
return extra_state
After Change
self.lr_step(epoch)
if "metrics" in extra_state and not reset_meters:
metrics.load_state_dict(extra_state["metrics"])
// reset TimeMeters, since their start times don"t make sense anymore
for meter in metrics.get_meters("default"):
if isinstance(meter, TimeMeter):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances Project Name: elbayadm/attn2d
Commit Name: 86793391e38bf88c119699bfb1993cb0a7a33968
Time: 2020-01-11
Author: myleott@fb.com
File Name: fairseq/trainer.py
Class Name: Trainer
Method Name: load_checkpoint
Project Name: OpenMined/PySyft
Commit Name: 59d4bbaaf06850e2dfb357855f50b05f6c9aadb1
Time: 2020-10-02
Author: skywind29@users.noreply.github.com
File Name: syft/frameworks/torch/fl/utils.py
Class Name:
Method Name: scale_model