From 8da6b72b03a29f56aa807e840d003730ab114fa0 Mon Sep 17 00:00:00 2001 From: zhangkaihuo Date: Wed, 24 Aug 2022 14:04:25 +0800 Subject: [PATCH] fix test (#45364) --- python/paddle/fluid/tests/unittests/test_sparse_utils_op.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/paddle/fluid/tests/unittests/test_sparse_utils_op.py b/python/paddle/fluid/tests/unittests/test_sparse_utils_op.py index 53c84c9d1f..2287eca23c 100644 --- a/python/paddle/fluid/tests/unittests/test_sparse_utils_op.py +++ b/python/paddle/fluid/tests/unittests/test_sparse_utils_op.py @@ -338,7 +338,7 @@ class TestSparseConvert(unittest.TestCase): dense_x = paddle.nn.functional.dropout(dense_x, p=0.5) verify(dense_x) - shape = np.random.randint(low=2, high=10, size=3) + shape = np.random.randint(low=3, high=10, size=3) shape = list(shape) dense_x = paddle.randn(shape) #set the 0th batch to zero -- GitLab