Skip to content
GitLab
菜单
项目
群组
代码片段
/
帮助
帮助
支持
社区论坛
快捷键
?
提交反馈
登录/注册
切换导航
菜单
打开侧边栏
KMSCAKKSCFKA AKFACAMADCAS
tensorflow-federated
提交
b53d2518
提交
b53d2518
编辑于
8月 25, 2021
作者:
Shanshan Wu
提交者:
tensorflow-copybara
8月 25, 2021
浏览文件
Add TODO on exploring `get_config` requirement for custom keras metrics.
PiperOrigin-RevId: 392931812
上级
594e012e
变更
1
Hide whitespace changes
Inline
Side-by-side
tensorflow_federated/python/learning/keras_utils.py
浏览文件 @
b53d2518
...
...
@@ -226,6 +226,8 @@ def federated_aggregate_keras_metric(
# If type(metric) is subclass of another tf.keras.metric arguments passed
# to __init__ must include arguments expected by the superclass and
# specified in superclass get_config().
# TODO(b/197746608): finds a safer way of reconstructing the metric,
# default argument values in Metric constructors can cause problems here.
keras_metric
=
None
try
:
# This is some trickery to reconstruct a metric object in the current
...
...
编辑
预览
支持
Markdown
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录