Files
concrete/docs/dev/api/concrete.fhe.compilation.artifacts.md
Benoit Chevallier-Mames e352eff1b3 docs(compiler): adding API doc
2024-03-13 14:52:46 +01:00

3.8 KiB

module concrete.fhe.compilation.artifacts

Declaration of DebugArtifacts class.


class DebugArtifacts

DebugArtifacts class, to export information about the compilation process.

method __init__

__init__(output_directory: Union[str, Path] = PosixPath('.artifacts'))

method add_client_parameters

add_client_parameters(client_parameters: bytes)

Add client parameters used.

Args:

  • client_parameters (bytes): client parameters

method add_graph

add_graph(name: str, graph: Graph)

Add a representation of the function being compiled.

Args: name (str): name of the graph (e.g., initial, optimized, final)

graph (Graph): a representation of the function being compiled


method add_mlir_to_compile

add_mlir_to_compile(mlir: str)

Add textual representation of the resulting MLIR.

Args: mlir (str): textual representation of the resulting MLIR


method add_parameter_encryption_status

add_parameter_encryption_status(name: str, encryption_status: str)

Add parameter encryption status of a parameter of the function being compiled.

Args: name (str): name of the parameter

encryption_status (str): encryption status of the parameter


method add_source_code

add_source_code(function: Union[str, Callable])

Add source code of the function being compiled.

Args: function (Union[str, Callable]): either the source code of the function or the function itself


method export

export()

Export the collected information to self.output_directory.