refacto: remove iter usage for passing a dataset

- it is still supported but not required and more confusing
This commit is contained in:
Arthur Meyre
2021-09-15 18:08:17 +02:00
parent 2296bcd457
commit 381c81b76c
14 changed files with 400 additions and 506 deletions

View File

@@ -24,7 +24,7 @@ y = hnp.EncryptedScalar(hnp.UnsignedInteger(1))
# Compile the function to its homomorphic equivalent
engine = hnp.compile_numpy_function(
f, {"x": x, "y": y},
iter([(0, 0), (0, 1), (1, 0), (1, 1), (2, 0), (2, 1), (3, 0), (3, 1)]),
[(0, 0), (0, 1), (1, 0), (1, 1), (2, 0), (2, 1), (3, 0), (3, 1)],
)
# Make homomorphic inference