mirror of
https://github.com/zama-ai/concrete.git
synced 2026-02-09 03:55:04 -05:00
feat: configure p_error during compilation
This commit is contained in:
@@ -145,6 +145,7 @@ class Circuit:
|
||||
options.set_loop_parallelize(configuration.loop_parallelize)
|
||||
options.set_dataflow_parallelize(configuration.dataflow_parallelize)
|
||||
options.set_auto_parallelize(configuration.auto_parallelize)
|
||||
options.set_p_error(configuration.p_error)
|
||||
|
||||
if configuration.jit:
|
||||
|
||||
|
||||
@@ -26,6 +26,7 @@ class Configuration:
|
||||
dataflow_parallelize: bool
|
||||
auto_parallelize: bool
|
||||
jit: bool
|
||||
p_error: float
|
||||
|
||||
# pylint: enable=too-many-instance-attributes
|
||||
|
||||
@@ -61,6 +62,7 @@ class Configuration:
|
||||
dataflow_parallelize: bool = False,
|
||||
auto_parallelize: bool = False,
|
||||
jit: bool = False,
|
||||
p_error: float = 6.3342483999973e-05,
|
||||
):
|
||||
self.verbose = verbose
|
||||
self.show_graph = show_graph
|
||||
@@ -73,6 +75,7 @@ class Configuration:
|
||||
self.dataflow_parallelize = dataflow_parallelize
|
||||
self.auto_parallelize = auto_parallelize
|
||||
self.jit = jit
|
||||
self.p_error = p_error
|
||||
|
||||
self._validate()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user