chore: update concrete-compiler to v0.5.0

Also pinning click due to an issue with black deps
This commit is contained in:
youben11
2022-03-29 09:16:45 +01:00
committed by Umut
parent d19514bb97
commit 0197332985
4 changed files with 301 additions and 304 deletions

View File

@@ -52,13 +52,10 @@ def value_to_mlir_type(ctx: Context, value: BaseValue) -> Type:
dtype = value.dtype
if isinstance(dtype, Integer):
try:
mlir_type = integer_to_mlir_type(ctx, dtype, value.is_encrypted)
if isinstance(value, TensorValue):
if not value.is_scalar:
mlir_type = RankedTensorType.get(value.shape, mlir_type)
return mlir_type
except ValueError:
pass # the error below will be raised
mlir_type = integer_to_mlir_type(ctx, dtype, value.is_encrypted)
if isinstance(value, TensorValue):
if not value.is_scalar:
mlir_type = RankedTensorType.get(value.shape, mlir_type)
return mlir_type
raise TypeError(f"{value} is not supported for MLIR conversion")

View File

@@ -1,20 +1,20 @@
Name Version License
Pillow 9.0.1 Historical Permission Notice and Disclaimer (HPND)
PyYAML 6.0 MIT License
concrete-compiler 0.4.0 BSD-3
cycler 0.11.0 BSD License
fonttools 4.29.1 MIT License
kiwisolver 1.3.2 BSD License
loguru 0.5.3 MIT License
matplotlib 3.5.1 Python Software Foundation License
networkx 2.7.1 BSD License
numpy 1.22.2 BSD License
packaging 21.3 Apache Software License; BSD License
pygraphviz 1.9 BSD License
pyparsing 3.0.7 MIT License
python-dateutil 2.8.2 Apache Software License; BSD License
setuptools-scm 6.4.2 MIT License
six 1.16.0 MIT License
tomli 1.2.3 MIT License
torch 1.10.2 BSD License
typing-extensions 4.1.1 Python Software Foundation License
Name Version License
Pillow 9.0.1 Historical Permission Notice and Disclaimer (HPND)
PyYAML 6.0 MIT License
concrete-compiler 0.5.0 BSD-3
cycler 0.11.0 BSD License
fonttools 4.31.2 MIT License
kiwisolver 1.4.2 BSD License
loguru 0.5.3 MIT License
matplotlib 3.5.1 Python Software Foundation License
networkx 2.7.1 BSD License
numpy 1.22.3 BSD License
packaging 21.3 Apache Software License; BSD License
pygraphviz 1.9 BSD License
pyparsing 3.0.7 MIT License
python-dateutil 2.8.2 Apache Software License; BSD License
setuptools-scm 6.4.2 MIT License
six 1.16.0 MIT License
tomli 1.2.3 MIT License
torch 1.11.0 BSD License
typing-extensions 4.1.1 Python Software Foundation License

548
poetry.lock generated

File diff suppressed because it is too large Load Diff

View File

@@ -45,7 +45,7 @@ pygraphviz = { version = "^1.7", optional = true }
Pillow = "^9.0.0"
loguru = "^0.5.3"
setuptools = "*"
concrete-compiler = "^0.4.0"
concrete-compiler = "^0.5.0"
torch = "^1.10.2"
[tool.poetry.extras]
@@ -55,6 +55,8 @@ extras = ["pygraphviz"]
[tool.poetry.dev-dependencies]
isort = "^5.10.1"
black = "^21.12b0"
# pinning click due to: https://github.com/psf/black/issues/2964
click = "8.0.4"
pylint = "2.11.1"
pytest = "^6.2.5"
pytest-cov = "^3.0.0"