From 6fafbdc39ec4d45e91c358c5d9f794a947f8cc75 Mon Sep 17 00:00:00 2001 From: pangyoki Date: Fri, 26 Feb 2021 19:17:06 +0800 Subject: [PATCH] change np.int to int to fix paddle warning (#31221) --- python/paddle/fluid/layers/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/paddle/fluid/layers/utils.py b/python/paddle/fluid/layers/utils.py index 0d278d493bc..463d9102660 100644 --- a/python/paddle/fluid/layers/utils.py +++ b/python/paddle/fluid/layers/utils.py @@ -23,7 +23,7 @@ from ..layer_helper import LayerHelper from sys import version_info -def convert_to_list(value, n, name, dtype=np.int): +def convert_to_list(value, n, name, dtype=int): """ Converts a single numerical type or iterable of numerical types into an numerical type list. -- GitLab