From 7efe5bdc402786092f61cf885c09282157d251e6 Mon Sep 17 00:00:00 2001 From: Anton Astafiev Date: Sun, 29 Sep 2024 19:08:18 +0200 Subject: [PATCH] fix(frontend): properly limit variable size in tests --- docs/compilation/composing_functions_with_modules.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/compilation/composing_functions_with_modules.md b/docs/compilation/composing_functions_with_modules.md index 7e4863c235..1eb08dffe4 100644 --- a/docs/compilation/composing_functions_with_modules.md +++ b/docs/compilation/composing_functions_with_modules.md @@ -16,11 +16,11 @@ from concrete import fhe class Counter: @fhe.function({"x": "encrypted"}) def inc(x): - return x + 1 % 20 + return (x + 1) % 20 @fhe.function({"x": "encrypted"}) def dec(x): - return x - 1 % 20 + return (x - 1) % 20 ``` Then, to compile the `Counter` module, use the `compile` method with a dictionary of input-sets for each function: