diff --git a/frontends/concrete-python/concrete/fhe/compilation/client.py b/frontends/concrete-python/concrete/fhe/compilation/client.py index 02ae08c288..9b5b3fbc4d 100644 --- a/frontends/concrete-python/concrete/fhe/compilation/client.py +++ b/frontends/concrete-python/concrete/fhe/compilation/client.py @@ -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) ) @@ -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) )