We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 374ac85 commit 1640784Copy full SHA for 1640784
test/test_utils.py
@@ -4,6 +4,8 @@
4
import sys
5
6
7
+# summary_writer should be an instance of torch.utils.tensorborad.SummaryWriter
8
+# or None. If None, no summary files will be written.
9
def add_scalar_to_summary(summary_writer, metric_name, metric_value,
10
global_step):
11
if summary_writer is not None:
0 commit comments