Skip to content

Commit

Permalink
fix(frontend): properly limit variable size in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
graphite authored and aPere3 committed Dec 10, 2024
1 parent f0e0a08 commit 7efe5bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/compilation/composing_functions_with_modules.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 7efe5bd

Please sign in to comment.