fix(frontend): properly limit variable size in tests

This commit is contained in:
Anton Astafiev
2024-09-29 19:08:18 +02:00
committed by Alexandre Péré
parent f0e0a080bc
commit 7efe5bdc40

View File

@@ -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: