mirror of
https://github.com/zama-ai/concrete.git
synced 2026-04-17 03:00:54 -04:00
test(frontend-python): Remove the high p_error in graph evaluation tests
This commit is contained in:
committed by
Quentin Bourgerie
parent
2c348f6a3d
commit
894ed9ec9f
@@ -100,7 +100,7 @@ class Graph:
|
||||
|
||||
pred_results = [node_results[pred] for pred in self.ordered_preds_of(node)]
|
||||
|
||||
if p_error > 0.0 and node.converted_to_table_lookup:
|
||||
if p_error > 0.0 and node.converted_to_table_lookup: # pragma: no cover
|
||||
variable_input_indices = [
|
||||
idx
|
||||
for idx, pred in enumerate(self.ordered_preds_of(node))
|
||||
|
||||
@@ -480,7 +480,7 @@ def test_circuit_eval_graph_scalar(helpers):
|
||||
|
||||
inputset = [(np.random.randint(0, 2**4), np.random.randint(0, 2**5)) for _ in range(2)]
|
||||
circuit = f.compile(inputset, configuration.fork(fhe_simulation=False, fhe_execution=False))
|
||||
assert f(*inputset[0]) == circuit.graph(*inputset[0], p_error=0.01)
|
||||
assert f(*inputset[0]) == circuit.graph(*inputset[0])
|
||||
|
||||
|
||||
def test_circuit_eval_graph_tensor(helpers):
|
||||
@@ -503,7 +503,7 @@ def test_circuit_eval_graph_tensor(helpers):
|
||||
for _ in range(2)
|
||||
]
|
||||
circuit = f.compile(inputset, configuration.fork(fhe_simulation=False, fhe_execution=False))
|
||||
assert np.all(f(*inputset[0]) == circuit.graph(*inputset[0], p_error=0.01))
|
||||
assert np.all(f(*inputset[0]) == circuit.graph(*inputset[0]))
|
||||
|
||||
|
||||
def test_circuit_compile_sim_only(helpers):
|
||||
|
||||
Reference in New Issue
Block a user