mirror of
https://github.com/zama-ai/concrete.git
synced 2026-01-22 11:18:09 -05:00
119 lines
5.2 KiB
Markdown
119 lines
5.2 KiB
Markdown
<!-- markdownlint-disable -->
|
|
|
|
<a href="../../../compilers/concrete-compiler/compiler/lib/Bindings/Python/concrete/compiler/__init__.py#L0"><img align="right" style="float:right;" src="https://img.shields.io/badge/-source-cccccc?style=flat-square"></a>
|
|
|
|
# <kbd>module</kbd> `concrete.compiler`
|
|
Compiler submodule.
|
|
|
|
**Global Variables**
|
|
---------------
|
|
- **wrapper**: # Part of the Concrete Compiler Project, under the BSD3 License with Zama Exceptions.
|
|
# See https://github.com/zama-ai/concrete/blob/main/LICENSE.txt for license information.
|
|
|
|
- **compilation_options**: # Part of the Concrete Compiler Project, under the BSD3 License with Zama Exceptions.
|
|
# See https://github.com/zama-ai/concrete/blob/main/LICENSE.txt for license information.
|
|
|
|
- **compilation_context**: # Part of the Concrete Compiler Project, under the BSD3 License with Zama Exceptions.
|
|
# See https://github.com/zama-ai/concrete/blob/main/LICENSE.txt for license information.
|
|
|
|
- **key_set_cache**: # Part of the Concrete Compiler Project, under the BSD3 License with Zama Exceptions.
|
|
# See https://github.com/zama-ai/concrete/blob/main/LICENSE.txt for license information.
|
|
|
|
- **client_parameters**: # Part of the Concrete Compiler Project, under the BSD3 License with Zama Exceptions.
|
|
# See https://github.com/zama-ai/concrete/blob/main/LICENSE.txt for license information.
|
|
|
|
- **parameter**
|
|
- **compilation_feedback**: # Part of the Concrete Compiler Project, under the BSD3 License with Zama Exceptions.
|
|
# See https://github.com/zama-ai/concrete/blob/main/LICENSE.txt for license information.
|
|
|
|
- **evaluation_keys**: # Part of the Concrete Compiler Project, under the BSD3 License with Zama Exceptions.
|
|
# See https://github.com/zama-ai/concrete/blob/main/LICENSE.txt for license information.
|
|
|
|
- **key_set**: # Part of the Concrete Compiler Project, under the BSD3 License with Zama Exceptions.
|
|
# See https://github.com/zama-ai/concrete/blob/main/LICENSE.txt for license information.
|
|
|
|
- **value**
|
|
- **public_result**: # Part of the Concrete Compiler Project, under the BSD3 License with Zama Exceptions.
|
|
# See https://github.com/zama-ai/concrete/blob/main/LICENSE.txt for license information.
|
|
|
|
- **public_arguments**: # Part of the Concrete Compiler Project, under the BSD3 License with Zama Exceptions.
|
|
# See https://github.com/zama-ai/concrete/blob/main/LICENSE.txt for license information.
|
|
|
|
- **utils**: # Part of the Concrete Compiler Project, under the BSD3 License with Zama Exceptions.
|
|
# See https://github.com/zama-ai/concrete/blob/main/LICENSE.txt for license information.
|
|
|
|
- **lambda_argument**: # Part of the Concrete Compiler Project, under the BSD3 License with Zama Exceptions.
|
|
# See https://github.com/zama-ai/concrete/blob/main/LICENSE.txt for license information.
|
|
|
|
- **library_compilation_result**: # Part of the Concrete Compiler Project, under the BSD3 License with Zama Exceptions.
|
|
# See https://github.com/zama-ai/concrete/blob/main/LICENSE.txt for license information.
|
|
|
|
- **library_lambda**: # Part of the Concrete Compiler Project, under the BSD3 License with Zama Exceptions.
|
|
# See https://github.com/zama-ai/concrete/blob/main/LICENSE.txt for license information.
|
|
|
|
- **client_support**: # Part of the Concrete Compiler Project, under the BSD3 License with Zama Exceptions.
|
|
# See https://github.com/zama-ai/concrete/blob/main/LICENSE.txt for license information.
|
|
|
|
- **library_support**: # Part of the Concrete Compiler Project, under the BSD3 License with Zama Exceptions.
|
|
# See https://github.com/zama-ai/concrete/blob/main/LICENSE.txt for license information.
|
|
|
|
- **value_decrypter**
|
|
- **value_exporter**
|
|
- **simulated_value_decrypter**
|
|
- **simulated_value_exporter**
|
|
- **server_circuit**: # Part of the Concrete Compiler Project, under the BSD3 License with Zama Exceptions.
|
|
# See https://github.com/zama-ai/concrete/blob/main/LICENSE.txt for license information.
|
|
|
|
- **server_program**: # Part of the Concrete Compiler Project, under the BSD3 License with Zama Exceptions.
|
|
# See https://github.com/zama-ai/concrete/blob/main/LICENSE.txt for license information.
|
|
|
|
|
|
---
|
|
|
|
<a href="../../../compilers/concrete-compiler/compiler/lib/Bindings/Python/concrete/compiler/__init__.py#L43"><img align="right" style="float:right;" src="https://img.shields.io/badge/-source-cccccc?style=flat-square"></a>
|
|
|
|
## <kbd>function</kbd> `init_dfr`
|
|
|
|
```python
|
|
init_dfr()
|
|
```
|
|
|
|
Initialize dataflow parallelization.
|
|
|
|
It is not always required to initialize the dataflow runtime as it can be implicitly done during compilation. However, it is required in case no compilation has previously been done and the runtime is needed
|
|
|
|
|
|
---
|
|
|
|
<a href="../../../compilers/concrete-compiler/compiler/lib/Bindings/Python/concrete/compiler/__init__.py#L57"><img align="right" style="float:right;" src="https://img.shields.io/badge/-source-cccccc?style=flat-square"></a>
|
|
|
|
## <kbd>function</kbd> `round_trip`
|
|
|
|
```python
|
|
round_trip(mlir_str: str) → str
|
|
```
|
|
|
|
Parse the MLIR input, then return it back.
|
|
|
|
Useful to check the validity of an MLIR representation
|
|
|
|
|
|
|
|
**Args:**
|
|
|
|
- <b>`mlir_str`</b> (str): textual representation of an MLIR code
|
|
|
|
|
|
|
|
**Raises:**
|
|
|
|
- <b>`TypeError`</b>: if mlir_str is not of type str
|
|
|
|
|
|
|
|
**Returns:**
|
|
|
|
- <b>`str`</b>: textual representation of the MLIR code after parsing
|
|
|
|
|