Skip to content

Commit

Permalink
fix running stage
Browse files Browse the repository at this point in the history
  • Loading branch information
awaelchli committed Jan 31, 2021
1 parent 238e0f2 commit e3175b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/models/test_restore.py
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ def assert_good_acc():
# haven't trained with the new loaded model
dp_model = new_trainer.model
dp_model.eval()
dp_model.module.running_stage = RunningStage.EVALUATING
new_trainer.get_model().running_stage = RunningStage.EVALUATING

dataloader = trainer.train_dataloader
tpipes.run_prediction(dp_model, dataloader, dp=True)
Expand Down

0 comments on commit e3175b1

Please sign in to comment.