Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion python/test/unit/language/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -2517,7 +2517,12 @@ def kernel(X, Z, BLOCK: tl.constexpr):
# input
rs = RandomState(17)
# limit the range of integers so that the sum does not overflow
x = numpy_random((shape, ), dtype_str=dtype_str, rs=rs)
if dtype_str in integral_dtypes:
low = 0 if dtype_str in uint_dtypes else -100
high = 100
x = numpy_random((shape, ), dtype_str=dtype_str, rs=rs, low=low, high=high)
else:
x = numpy_random((shape, ), dtype_str=dtype_str, rs=rs)
numpy_op = {
'sum': np.sum,
'max': np.max,
Expand Down
Loading