From e7deae2129583d5eb19d975a07904a6bfce7026f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=98=A5=E4=B9=94?= <83450930+Liyulingyue@users.noreply.github.com> Date: Tue, 31 Jan 2023 10:33:39 +0800 Subject: [PATCH] modify np.int with np.int64 (#49967) * change int -> int64 * Update python/paddle/fluid/tests/unittests/ir/inference/test_trt_convert_one_hot.py --- .../tests/unittests/ir/inference/test_trt_convert_one_hot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/paddle/fluid/tests/unittests/ir/inference/test_trt_convert_one_hot.py b/python/paddle/fluid/tests/unittests/ir/inference/test_trt_convert_one_hot.py index 53574a3fd27..30446265a43 100644 --- a/python/paddle/fluid/tests/unittests/ir/inference/test_trt_convert_one_hot.py +++ b/python/paddle/fluid/tests/unittests/ir/inference/test_trt_convert_one_hot.py @@ -59,7 +59,7 @@ class TrtConvertOneHotTest(TrtLayerAutoScanTest): }, "op_outputs": {"Out": ["output_data"]}, "op_attrs": dics[0], - "outputs_dtype": {"output_data": np.int64}, + "outputs_dtype": {"output_data": np.int_}, }, ] ops = self.generate_op_config(ops_config) -- GitLab