From a5d4c6528f714c7d640965a8c3478acdfc673bcf Mon Sep 17 00:00:00 2001 From: Weiwen Chen Date: Mon, 14 Jun 2021 21:21:29 +0800 Subject: [PATCH] add a return value in TextLoggerHook.log() (#1040) I need this in a subclass, but I dont want copy the whole `log()` function --- mmcv/runner/hooks/logger/text.py | 1 + 1 file changed, 1 insertion(+) diff --git a/mmcv/runner/hooks/logger/text.py b/mmcv/runner/hooks/logger/text.py index d43d1481b4..5b0c7f22f0 100644 --- a/mmcv/runner/hooks/logger/text.py +++ b/mmcv/runner/hooks/logger/text.py @@ -176,3 +176,4 @@ def log(self, runner): self._log_info(log_dict, runner) self._dump_log(log_dict, runner) + return log_dict