Skip to content

Commit 9888e03

Browse files
authored
Apply suggestions from code review
1 parent 91d6a36 commit 9888e03

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

pytorch_lightning/callbacks/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def on_train_epoch_end(
104104
"""Called when the train epoch ends.
105105
106106
To access all batch outputs at the end of the epoch, either:
107-
1. Implement `training_epoch_end` in the LightningModule and access outputs via the module OR
107+
1. Implement `training_epoch_end` in the `LightningModule` and access outputs via the module OR
108108
2. Cache data across train batch hooks inside the callback implementation to post-process in this hook.
109109
"""
110110
pass

pytorch_lightning/core/hooks.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,8 +241,7 @@ def on_train_epoch_end(self, unused: Optional = None) -> None:
241241
242242
To access all batch outputs at the end of the epoch, either:
243243
1. Implement `training_epoch_end` in the LightningModule OR
244-
2. Cache data across steps on attribute(s) of the LightningModule
245-
and access them in this hook
244+
2. Cache data across steps on the attribute(s) of the `LightningModule` and access them in this hook
246245
"""
247246

248247
def on_validation_epoch_start(self) -> None:

0 commit comments

Comments
 (0)