diff --git a/tests/execution/test_convolution.py b/tests/execution/test_convolution.py index 2364c920a..285b04b8b 100644 --- a/tests/execution/test_convolution.py +++ b/tests/execution/test_convolution.py @@ -64,7 +64,7 @@ def test_conv2d(input_shape, weight_shape, strides, dilations, has_bias, helpers inputset = [np.random.randint(0, 4, size=input_shape) for i in range(100)] circuit = function.compile(inputset, configuration) - sample = np.random.randint(0, 4, size=input_shape, dtype=np.uint8) + sample = np.random.randint(0, 4, size=input_shape) helpers.check_execution(circuit, function, sample) diff --git a/tests/execution/test_dot.py b/tests/execution/test_dot.py index 0dfb8caf8..daae5c13b 100644 --- a/tests/execution/test_dot.py +++ b/tests/execution/test_dot.py @@ -40,7 +40,7 @@ def test_dot(size, helpers): right_function_circuit = right_function.compile(inputset, configuration) method_circuit = method.compile(inputset, configuration) - sample = np.random.randint(0, bound, size=(size,), dtype=np.uint8) + sample = np.random.randint(0, bound, size=(size,)) helpers.check_execution(left_function_circuit, left_function, sample) helpers.check_execution(right_function_circuit, right_function, sample) diff --git a/tests/execution/test_matmul.py b/tests/execution/test_matmul.py index c921254f1..dca275147 100644 --- a/tests/execution/test_matmul.py +++ b/tests/execution/test_matmul.py @@ -149,8 +149,8 @@ def test_matmul(lhs_shape, rhs_shape, bounds, helpers): lhs_function_circuit = lhs_function.compile(lhs_inputset, configuration) rhs_function_circuit = rhs_function.compile(rhs_inputset, configuration) - lhs_sample = np.random.randint(minimum, maximum, size=lhs_shape, dtype=np.uint8) - rhs_sample = np.random.randint(minimum, maximum, size=rhs_shape, dtype=np.uint8) + lhs_sample = np.random.randint(minimum, maximum, size=lhs_shape) + rhs_sample = np.random.randint(minimum, maximum, size=rhs_shape) helpers.check_execution(lhs_operator_circuit, lhs_operator, lhs_sample) helpers.check_execution(rhs_operator_circuit, rhs_operator, rhs_sample) diff --git a/tests/execution/test_reshape.py b/tests/execution/test_reshape.py index e87e97f16..ac44b5093 100644 --- a/tests/execution/test_reshape.py +++ b/tests/execution/test_reshape.py @@ -129,7 +129,7 @@ def test_reshape(shape, newshape, helpers): function_circuit = function.compile(inputset, configuration) method_circuit = method.compile(inputset, configuration) - sample = np.random.randint(0, 2**5, size=shape, dtype=np.uint8) + sample = np.random.randint(0, 2**5, size=shape) helpers.check_execution(function_circuit, function, sample) helpers.check_execution(method_circuit, method, sample) @@ -166,5 +166,5 @@ def test_flatten(shape, helpers): inputset = [np.random.randint(0, 2**5, size=shape) for i in range(100)] circuit = function.compile(inputset, configuration) - sample = np.random.randint(0, 2**5, size=shape, dtype=np.uint8) + sample = np.random.randint(0, 2**5, size=shape) helpers.check_execution(circuit, function, sample) diff --git a/tests/execution/test_static_indexing.py b/tests/execution/test_static_indexing.py index 9c9ad5961..3d89a582e 100644 --- a/tests/execution/test_static_indexing.py +++ b/tests/execution/test_static_indexing.py @@ -159,7 +159,7 @@ def test_static_indexing(shape, function, helpers): inputset = [np.random.randint(0, 2**5, size=shape) for _ in range(100)] circuit = compiler.compile(inputset, configuration) - sample = np.random.randint(0, 2**5, size=shape, dtype=np.uint8) + sample = np.random.randint(0, 2**5, size=shape) helpers.check_execution(circuit, function, sample)