From 38600f8b82443598717796eeea81a557404815f2 Mon Sep 17 00:00:00 2001 From: rudy Date: Tue, 6 Aug 2024 14:21:45 +0200 Subject: [PATCH] fix(frontend-python): test_matmul.test_constant_matmul, randomly failing test --- frontends/concrete-python/tests/execution/test_matmul.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontends/concrete-python/tests/execution/test_matmul.py b/frontends/concrete-python/tests/execution/test_matmul.py index bcc0e91d8c..50c167a969 100644 --- a/frontends/concrete-python/tests/execution/test_matmul.py +++ b/frontends/concrete-python/tests/execution/test_matmul.py @@ -159,8 +159,8 @@ def rhs_function(x): 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) - rhs_sample = np.random.randint(minimum, maximum, size=rhs_shape) + lhs_sample = lhs_inputset[-1] + rhs_sample = rhs_inputset[-1] helpers.check_execution(lhs_operator_circuit, lhs_operator, lhs_sample) helpers.check_execution(rhs_operator_circuit, rhs_operator, rhs_sample)