diff --git a/concrete/common/mlir/node_converter.py b/concrete/common/mlir/node_converter.py index d8457b6c6..78b4edcb7 100644 --- a/concrete/common/mlir/node_converter.py +++ b/concrete/common/mlir/node_converter.py @@ -282,7 +282,12 @@ class IntermediateNodeConverter: table = tables[0][0] lut_shape: Tuple[int, ...] = (len(table),) - lut_values = numpy.array(table, dtype=numpy.uint64) + + # The reduction on 63b is to avoid problems like doing a TLU of + # the form T[j] = 2<> 2, ((30, 100),), ["x"]), pytest.param(lambda x: 115 >> (x % 3), ((0, 17),), ["x"]), pytest.param(lambda x: x % 7, ((0, 100),), ["x"]),