fix(compiler): Remove the 7bits restriction on compiler side, it's the optimizer that known the truth

This commit is contained in:
Quentin Bourgerie
2022-03-21 13:46:27 +01:00
parent fe13853286
commit 8961be33d2
7 changed files with 10 additions and 21 deletions

View File

@@ -1,13 +1,9 @@
import pytest
from mlir.ir import Context, RankedTensorType, Location
from concrete.lang import register_dialects, MAXIMUM_BIT_WIDTH
from concrete.lang import register_dialects
from concrete.lang.dialects import fhe
def test_constants():
assert MAXIMUM_BIT_WIDTH == 7
@pytest.mark.parametrize("width", list(range(1, 8)))
def test_eint(width):
ctx = Context()
@@ -27,7 +23,7 @@ def test_eint_tensor(shape):
)
@pytest.mark.parametrize("width", [0, 8, 10, 12])
@pytest.mark.parametrize("width", [0])
def test_invalid_eint(width):
ctx = Context()
register_dialects(ctx)