Skip to content
Snippets Groups Projects
Commit 32a158f6 authored by Christophe Guillon's avatar Christophe Guillon Committed by Maxence Naud
Browse files

[Tests] Set test_export inputs fixed

Fix random seed when generating inputs for test_export,
such that generated export is fixed and do not require
recompilation at each test run.
parent 97e696f8
No related branches found
No related tags found
3 merge requests!279v0.4.0,!253v0.4.0,!163Export refactor
......@@ -26,6 +26,8 @@ def initFiller(model):
value = prod_op.get_output(0)
value.set_backend("cpu")
tuple_out = node.output(0)[0]
# Force seed before filler for reproducibility
aidge_core.random.Generator.set_seed(0)
# No conv in current network
if tuple_out[0].type() == "Conv" and tuple_out[1] == 1:
# Conv weight
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment