Skip to content

Commit

Permalink
Change zeros -> empty for output array
Browse files Browse the repository at this point in the history
  • Loading branch information
shwina committed Jan 10, 2025
1 parent 1654415 commit ac3bd30
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion python/cuda_parallel/tests/test_reduce.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion python/cuda_parallel/tests/test_reduce_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit ac3bd30

Please sign in to comment.