mirror of
https://github.com/zama-ai/concrete.git
synced 2026-01-08 20:38:06 -05:00
fix(frontend): properly limit variable size in tests
This commit is contained in:
committed by
Alexandre Péré
parent
f0e0a080bc
commit
7efe5bdc40
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user