Commit c9b800d2 authored by Sergey Edunov's avatar Sergey Edunov Committed by Myle Ott
Browse files

Old checkpoints can't be loaded because of a new meter

parent 9c102784
......@@ -107,7 +107,7 @@ class Trainer(object):
self._num_updates = last_optim['num_updates']
if extra_state is not None and 'train_meters' in extra_state:
self.meters = extra_state['train_meters']
self.meters.update(extra_state['train_meters'])
del extra_state['train_meters']
# reset TimeMeters, since their start times don't make sense anymore
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment