Skip to content
This repository was archived by the owner on Oct 9, 2023. It is now read-only.

Commit

Permalink
note for DDP inference (#1194)
Browse files Browse the repository at this point in the history
Co-authored-by: Ethan Harris <[email protected]>
  • Loading branch information
Borda and ethanwharris authored Mar 1, 2022
1 parent 8144087 commit 8abc10a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/source/general/predictions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,7 @@ reference below).
predictions = trainer.predict(model, datamodule=datamodule)
print(predictions)
# out: [[[0.5926494598388672, 0.40735048055648804]]]
.. note::
PyTorch Lightning does not return predictions directly from `predict` when using a multi-GPU configuration (DDP). Instead you should use a :class:`pytorch_lightning.callbacks.BasePredictionWriter`.

0 comments on commit 8abc10a

Please sign in to comment.