提交 04cbccc8 编写于 作者: D djstrong 提交者: François Chollet

fix #13341 math_ops to K (#13342)

上级 4f94a15e
......@@ -1019,7 +1019,7 @@ def call_metric_function(metric_fn,
mask=None):
"""Invokes metric function and returns the metric result tensor."""
if mask is not None:
mask = math_ops.cast(mask, y_pred.dtype)
mask = K.cast(mask, y_pred.dtype)
if weights is None:
# Use mask as sample weight.
weights = mask
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册