mirror of
https://github.com/zama-ai/concrete.git
synced 2026-02-09 03:55:04 -05:00
fix(compiler): Remove the 7bits restriction on compiler side, it's the optimizer that known the truth
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user