Skip to content

Commit 7122760

Browse files
authored
[Fix deprecation warning in test] np.float => np.float64 (#49970)
1 parent eba7b58 commit 7122760

File tree

1 file changed

+1
-1
lines changed
  • python/paddle/optimizer

1 file changed

+1
-1
lines changed

python/paddle/optimizer/lr.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1406,7 +1406,7 @@ def step(self, metrics, epoch=None):
14061406
metrics, (int, float, numpy.float32, numpy.float64)
14071407
):
14081408
raise TypeError(
1409-
"metrics must be 'int', 'float', 'np.float', 'numpy.ndarray' or 'paddle.Tensor', but receive {}".format(
1409+
"metrics must be 'int', 'float', 'np.float64', 'numpy.ndarray' or 'paddle.Tensor', but receive {}".format(
14101410
type(metrics)
14111411
)
14121412
)

0 commit comments

Comments
 (0)