Skip to content

Commit ea6b350

Browse files
authored
Minor warning message fix (Lightning-AI#2173)
1 parent 3436d00 commit ea6b350

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pytorch_lightning/callbacks/model_checkpoint.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ def on_validation_end(self, trainer, pl_module):
260260
if not isinstance(current, torch.Tensor):
261261
rank_zero_warn(
262262
f'The metric you returned {current} must be a Torch.Tensor instance, checkpoint not saved '
263-
f'HINT: what is the value of {self.monitor} in validation_end()?', RuntimeWarning
263+
f'HINT: what is the value of {self.monitor} in validation_epoch_end()?', RuntimeWarning
264264
)
265265

266266
if current is None:

0 commit comments

Comments
 (0)