From d0986e97879bf05ff00888d3a4a6db445f59095f Mon Sep 17 00:00:00 2001 From: Mingshuang Luo <37799481+luomingshuang@users.noreply.github.com> Date: Wed, 29 Sep 2021 16:04:56 +0800 Subject: [PATCH] Update utils.py --- icefall/utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/icefall/utils.py b/icefall/utils.py index b85b6bf7b..e3ae685f8 100644 --- a/icefall/utils.py +++ b/icefall/utils.py @@ -478,7 +478,8 @@ class LossRecord(collections.defaultdict): for k, v in zip(keys, s.cpu().tolist()): self[k] = v - def write_summary(self, tb_writer: SummaryWriter, prefix: str, batch_idx: int) -> None: + def write_summary(self, tb_writer: SummaryWriter, + prefix: str, batch_idx: int) -> None: """Add logging information to a TensorBoard writer. Args: