mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-08-26 10:16:14 +00:00
Update utils.py
This commit is contained in:
parent
7faab70ddf
commit
a0994ee58a
@ -482,14 +482,14 @@ class LossRecord(collections.defaultdict):
|
|||||||
self,
|
self,
|
||||||
tb_writer: SummaryWriter,
|
tb_writer: SummaryWriter,
|
||||||
prefix: str,
|
prefix: str,
|
||||||
batch_idx: int
|
batch_idx: int,
|
||||||
) -> None:
|
) -> None:
|
||||||
"""Add logging information to a TensorBoard writer.
|
"""Add logging information to a TensorBoard writer.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
tb_writer: a TensorBoard writer
|
tb_writer: a TensorBoard writer
|
||||||
prefix: a prefix for the name of the loss,
|
prefix: a prefix for the name of the loss, e.g. "train/valid_",
|
||||||
e.g. "train/valid_", or "train/current_".
|
or "train/current_"
|
||||||
batch_idx: The current batch index, used as the x-axis of the plot.
|
batch_idx: The current batch index, used as the x-axis of the plot.
|
||||||
"""
|
"""
|
||||||
for k, v in self.norm_items():
|
for k, v in self.norm_items():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user