mirror of
https://github.com/zama-ai/concrete.git
synced 2026-02-09 03:55:04 -05:00
chore: fix doc tests after refusing tuples for 1-input function inputsets
- also fix notebooks
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -34,7 +34,7 @@ We also need an inputset. It is to determine the bit-widths of the intermediate
|
||||
|
||||
<!--python-test:cont-->
|
||||
```python
|
||||
inputset = [(2, 3), (0, 0), (1, 6), (7, 7), (7, 1)]
|
||||
inputset = [(2, 3), (0, 0), (1, 6), (7, 7), (7, 1), (3, 2), (6, 1), (1, 7), (4, 5), (5, 4)]
|
||||
```
|
||||
|
||||
Finally, we can compile our function to its homomorphic equivalent.
|
||||
|
||||
@@ -98,7 +98,7 @@ artifacts = hnp.CompilationArtifacts(pathlib.Path("/tmp/custom/export/path"))
|
||||
hnp.compile_numpy_function(
|
||||
lambda x: 100 - (3 * (x + 2)),
|
||||
{"x": hnp.EncryptedScalar(hnp.UnsignedInteger(3))},
|
||||
inputset=[(i,) for i in range(2 ** 3)],
|
||||
inputset=range(2 ** 3),
|
||||
compilation_artifacts=artifacts,
|
||||
)
|
||||
artifacts.export()
|
||||
|
||||
Reference in New Issue
Block a user