chore: use namespace concrete for the py package

Compiler tools such as CompilerEngine would now be imported from
concrete.compiler
Dialects would now be imported from concrete.lang.dialects
And anything related to concretelang can be imported directly from
concrete.lang
This commit is contained in:
youben11
2021-12-28 15:24:43 +01:00
committed by Ayoub Benaissa
parent e73291abdc
commit 47ef595a2a
15 changed files with 17 additions and 18 deletions

View File

@@ -3,7 +3,7 @@ import tempfile
import pytest
import numpy as np
from concretelang import CompilerEngine, library
from concrete.compiler import CompilerEngine, library
KEY_SET_CACHE_PATH = os.path.join(tempfile.gettempdir(), 'KeySetCache')

View File

@@ -1,7 +1,7 @@
import pytest
from mlir.ir import Context, RankedTensorType, Location
from concretelang import register_dialects
from concretelang.dialects import hlfhe
from concrete.lang import register_dialects
from concrete.lang.dialects import hlfhe
@pytest.mark.parametrize("width", list(range(1, 8)))

View File

@@ -1,5 +1,5 @@
import pytest
from concretelang import compiler
from concrete import compiler
VALID_INPUTS = [