提交 bd9009e4 编辑于 作者: Zachary Charles's avatar Zachary Charles 提交者: tensorflow-copybara
浏览文件

Add int conversion when clearing metrics in order to circumvent opaque failure modes.

PiperOrigin-RevId: 411610540
上级 89513c89
......@@ -304,7 +304,7 @@ class CSVMetricsManager(metrics_manager.MetricsManager):
latest_round_num = None
for metric_row in metrics:
metric_row_round_num = metric_row['round_num']
metric_row_round_num = int(metric_row['round_num'])
if metric_row_round_num <= round_num:
reduced_fieldnames = reduced_fieldnames.union(metric_row.keys())
reduced_metrics.append(metric_row)
......
Supports Markdown
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册