From 52cc0c108a3dfd825ead353be73b50a7f6d74fa3 Mon Sep 17 00:00:00 2001 From: Umut Date: Tue, 16 May 2023 14:05:38 +0200 Subject: [PATCH] fix(frontend-python): update outdated tests after bit-width optimizations --- frontends/concrete-python/tests/mlir/test_converter.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/frontends/concrete-python/tests/mlir/test_converter.py b/frontends/concrete-python/tests/mlir/test_converter.py index 633aca6e9..578110f00 100644 --- a/frontends/concrete-python/tests/mlir/test_converter.py +++ b/frontends/concrete-python/tests/mlir/test_converter.py @@ -608,11 +608,11 @@ return %2 Function you are trying to compile cannot be compiled %0 = x # EncryptedScalar ∈ [100000, 100000] -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this 22-bit value is used as an operand to an encrypted multiplication - (note that it's assigned 22-bits during compilation because of its relation with other operations) +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this 21-bit value is used as an operand to an encrypted multiplication + (note that it's assigned 21-bits during compilation because of its relation with other operations) %1 = y # EncryptedScalar ∈ [20, 20] -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this 22-bit value is used as an operand to an encrypted multiplication - (note that it's assigned 22-bits during compilation because of its relation with other operations) +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this 21-bit value is used as an operand to an encrypted multiplication + (note that it's assigned 21-bits during compilation because of its relation with other operations) %2 = multiply(%0, %1) # EncryptedScalar ∈ [2000000, 2000000] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ but only up to 16-bit encrypted multiplications are supported return %2