Update utils.py

This commit is contained in:
Mingshuang Luo 2021-09-29 16:11:23 +08:00 committed by GitHub
parent d0986e9787
commit ec3b1bb015
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -479,7 +479,7 @@ class LossRecord(collections.defaultdict):
self[k] = v self[k] = v
def write_summary(self, tb_writer: SummaryWriter, def write_summary(self, tb_writer: SummaryWriter,
prefix: str, batch_idx: int) -> None: prefix: str, batch_idx: int) -> None:
"""Add logging information to a TensorBoard writer. """Add logging information to a TensorBoard writer.
Args: Args: