未验证 提交 7122760a 编写于 作者: L LoneRanger 提交者: GitHub

[Fix deprecation warning in test] np.float => np.float64 (#49970)

上级 eba7b584
......@@ -1406,7 +1406,7 @@ class ReduceOnPlateau(LRScheduler):
metrics, (int, float, numpy.float32, numpy.float64)
):
raise TypeError(
"metrics must be 'int', 'float', 'np.float', 'numpy.ndarray' or 'paddle.Tensor', but receive {}".format(
"metrics must be 'int', 'float', 'np.float64', 'numpy.ndarray' or 'paddle.Tensor', but receive {}".format(
type(metrics)
)
)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册