Skip to content

Commit

Permalink
Fix Trainer init arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
tanaysoni committed Jan 17, 2020
1 parent 30999b3 commit 9f11bc3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion farm/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,13 @@ def _load_checkpoint(cls, path, data_silo):
scheduler = get_scheduler(optimizer, scheduler_opts)
scheduler.load_state_dict(scheduler_state_dict)

trainer = Trainer(data_silo=data_silo, model=model, lr_schedule=scheduler, **trainer_state_dict)
trainer = Trainer(
data_silo=data_silo,
model=model,
optimizer=optimizer,
lr_schedule=scheduler,
**trainer_state_dict
)
return trainer

def _save(self):
Expand Down

0 comments on commit 9f11bc3

Please sign in to comment.