From b451ff269ccd8b3b5496e094ecd5e207eadbd379 Mon Sep 17 00:00:00 2001 From: huangjun12 <12272008@bjtu.edu.cn> Date: Mon, 26 Jul 2021 11:14:20 +0000 Subject: [PATCH] fix ci coverage bug --- python/paddle/fluid/tests/unittests/test_lrn_op.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/paddle/fluid/tests/unittests/test_lrn_op.py b/python/paddle/fluid/tests/unittests/test_lrn_op.py index 58824196989..4589f84deb3 100644 --- a/python/paddle/fluid/tests/unittests/test_lrn_op.py +++ b/python/paddle/fluid/tests/unittests/test_lrn_op.py @@ -324,7 +324,7 @@ class TestLocalResponseNormFAPIError(unittest.TestCase): self.assertRaises(ValueError, test_dim) def test_shape(): - x = fluid.data(name='x', shape=[0, 0, 2, 3], dtype="float32") + x = paddle.rand(shape=[0, 0, 2, 3], dtype="float32") paddle.nn.functional.local_response_norm(x, size=5) self.assertRaises(ValueError, test_shape) -- GitLab