From 69e1007f426a4421f19f8eb942c38142f43c7bc2 Mon Sep 17 00:00:00 2001 From: Ekagra Ranjan Date: Tue, 7 Jun 2022 08:48:52 +0530 Subject: [PATCH] fix typo comment --- src/pytorch_lightning/callbacks/early_stopping.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pytorch_lightning/callbacks/early_stopping.py b/src/pytorch_lightning/callbacks/early_stopping.py index f58d2cd39ce4c..2fd730482fcc4 100644 --- a/src/pytorch_lightning/callbacks/early_stopping.py +++ b/src/pytorch_lightning/callbacks/early_stopping.py @@ -263,8 +263,10 @@ def _log_info(trainer: Optional["pl.Trainer"], message: str, log_rank_zero_only: # ignore logging in non-zero ranks if log_rank_zero_only flag is enabled if log_rank_zero_only and trainer.global_rank != 0: return - # if world size is more than one then specify the rank of the processed being logged + # if world size is more than one then specify the rank of the process being logged if trainer.world_size > 1: log.info(f"[rank: {trainer.global_rank}] {message}") return + + # if above conditions don't meet and we have to log log.info(message)