Skip to content

Commit

Permalink
fix type
Browse files Browse the repository at this point in the history
  • Loading branch information
four4fish committed Dec 4, 2021
1 parent 0e0b6ae commit 3d6fa8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytorch_lightning/plugins/training_type/ddp.py
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ def test_step(self, *args, **kwargs) -> Optional[STEP_OUTPUT]:
return self.lightning_module.test_step(*args, **kwargs)

def predict_step(self, *args, **kwargs) -> STEP_OUTPUT:
with self.precision_plugin.test_step_context():
with self.precision_plugin.predict_step_context():
return self.lightning_module.predict_step(*args, **kwargs)

def post_training_step(self):
Expand Down

0 comments on commit 3d6fa8b

Please sign in to comment.