Skip to content

Commit

Permalink
fix(frontend): fix decryption dtype
Browse files Browse the repository at this point in the history
  • Loading branch information
aPere3 committed Oct 14, 2024
1 parent a9e03e2 commit 056f931
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions frontends/concrete-python/concrete/fhe/compilation/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,9 @@ def decrypt(
decrypted = tuple(
client_circuit.process_output(
result._inner, position # pylint: disable=protected-access
).to_py_val()
)
.to_py_val()
.astype("int64")
for position, result in enumerate(flattened_results)
)

Expand Down Expand Up @@ -344,7 +346,9 @@ def simulate_decrypt(
decrypted = tuple(
client_circuit.simulate_process_output(
result._inner, position # pylint: disable=protected-access
).to_py_val()
)
.to_py_val()
.astype("int64")
for position, result in enumerate(flattened_results)
)

Expand Down

0 comments on commit 056f931

Please sign in to comment.