Skip to content
GitLab
菜单
项目
群组
代码片段
帮助
帮助
支持
社区论坛
快捷键
?
提交反馈
登录/注册
切换导航
菜单
打开侧边栏
KMSCAKKSCFKA AKFACAMADCAS
tensorflow-federated
提交
bd9009e4
提交
bd9009e4
编辑于
11月 22, 2021
作者:
Zachary Charles
提交者:
tensorflow-copybara
11月 22, 2021
浏览文件
Add int conversion when clearing metrics in order to circumvent opaque failure modes.
PiperOrigin-RevId: 411610540
上级
89513c89
变更
1
Hide whitespace changes
Inline
Side-by-side
tensorflow_federated/python/simulation/csv_manager.py
浏览文件 @
bd9009e4
...
...
@@ -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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录