Skip to content

Commit 1640784

Browse files
zcain117dlibenzi
authored andcommitted
comment
1 parent 374ac85 commit 1640784

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/test_utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
import sys
55

66

7+
# summary_writer should be an instance of torch.utils.tensorborad.SummaryWriter
8+
# or None. If None, no summary files will be written.
79
def add_scalar_to_summary(summary_writer, metric_name, metric_value,
810
global_step):
911
if summary_writer is not None:

0 commit comments

Comments
 (0)