Skip to content

Commit

Permalink
Fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanwharris committed Mar 23, 2021
1 parent 23b21c5 commit 210fd87
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/plugins/test_double_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,5 +125,6 @@ def test_double_precision(tmpdir, boring_model):
trainer.fit(model)
trainer.test(model)
trainer.predict(model)
torch.set_grad_enabled(True) # trainer.predict kills gradient

assert model.training_step == original_training_step

0 comments on commit 210fd87

Please sign in to comment.