Skip to content

Commit 61a3e89

Browse files
committed
Fix failing tests
1 parent 012b95b commit 61a3e89

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/plugins/test_double_plugin.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,5 +125,6 @@ def test_double_precision(tmpdir, boring_model):
125125
trainer.fit(model)
126126
trainer.test(model)
127127
trainer.predict(model)
128+
torch.set_grad_enabled(True) # trainer.predict kills gradient
128129

129130
assert model.training_step == original_training_step

0 commit comments

Comments
 (0)