Fix indentation bug pointed out by Patrick Lachance
This commit is contained in:
parent
7971137ad4
commit
156011be5f
1 changed files with 1 additions and 1 deletions
|
@ -157,7 +157,7 @@ def gpu_worker(local_rank, node, args):
|
||||||
start_epoch = state['epoch']
|
start_epoch = state['epoch']
|
||||||
|
|
||||||
load_model_state_dict(model.module, state['model'],
|
load_model_state_dict(model.module, state['model'],
|
||||||
strict=args.load_state_strict)
|
strict=args.load_state_strict)
|
||||||
|
|
||||||
if 'optimizer' in state:
|
if 'optimizer' in state:
|
||||||
optimizer.load_state_dict(state['optimizer'])
|
optimizer.load_state_dict(state['optimizer'])
|
||||||
|
|
Loading…
Reference in a new issue