test(frontend-python): Remove the high p_error in graph evaluation tests

This commit is contained in:
Bourgerie Quentin
2023-08-02 09:47:35 +02:00
committed by Quentin Bourgerie
parent 2c348f6a3d
commit 894ed9ec9f
2 changed files with 3 additions and 3 deletions

View File

@@ -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))

View File

@@ -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):