When testing the division of two encrypted numbers in Concrete FHE alone, I get an error during the compile() phase. Here’s a minimal example:
from concrete import fhe
import numpy as np
@fhe.compiler({“x”: “encrypted”, “y”: “encrypted”})
def divide_two_encrypted_numbers(x, y):
return x // y
inputset = [
(np.uint64(3), np.uint64(2)),
(np.uint64(15), np.uint64(4)),
]
circuit = divide_two_encrypted_numbers.compile(inputset)
I get this error message:
RuntimeError: A subgraph within the function you are trying to compile cannot be fused because it has multiple input nodes
…
%0 = x
%1 = y
%2 = floor_divide(%0, %1)
return %2
I’ve been trying this for a while, but I couldn’t figure it out.