diff --git a/python/cuda_parallel/tests/test_reduce.py b/python/cuda_parallel/tests/test_reduce.py index 8edbcc13c97..c946b658ac0 100644 --- a/python/cuda_parallel/tests/test_reduce.py +++ b/python/cuda_parallel/tests/test_reduce.py @@ -564,7 +564,7 @@ def max_g_value(x, y): return x if x.g > y.g else y d_rgb = cp.random.randint(0, 256, (10, 3), dtype=np.int32).view(Pixel.dtype) - d_out = cp.zeros(1, Pixel.dtype) + d_out = cp.empty(1, Pixel.dtype) h_init = Pixel(0, 0, 0) diff --git a/python/cuda_parallel/tests/test_reduce_api.py b/python/cuda_parallel/tests/test_reduce_api.py index 22d824caee9..cd23f85e2fa 100644 --- a/python/cuda_parallel/tests/test_reduce_api.py +++ b/python/cuda_parallel/tests/test_reduce_api.py @@ -198,7 +198,7 @@ def max_g_value(x, y): return x if x.g > y.g else y d_rgb = cp.random.randint(0, 256, (10, 3), dtype=np.int32).view(Pixel.dtype) - d_out = cp.zeros(1, Pixel.dtype) + d_out = cp.empty(1, Pixel.dtype) h_init = Pixel(0, 0, 0)