From 7122760a5506fa1844893c0c3e97a23376ff855b Mon Sep 17 00:00:00 2001 From: LoneRanger <836253168@qq.com> Date: Tue, 31 Jan 2023 12:06:19 +0800 Subject: [PATCH] [Fix deprecation warning in test] np.float => np.float64 (#49970) --- python/paddle/optimizer/lr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/paddle/optimizer/lr.py b/python/paddle/optimizer/lr.py index 258e69978a..07420be891 100644 --- a/python/paddle/optimizer/lr.py +++ b/python/paddle/optimizer/lr.py @@ -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) ) ) -- GitLab