From 43ef9748428ee5e673c76a3abd8a0432200a9101 Mon Sep 17 00:00:00 2001 From: Megvii Engine Team Date: Mon, 10 May 2021 15:37:22 +0800 Subject: [PATCH] feat(mgb): load_and_run can set both fastrun and reproducible GitOrigin-RevId: 14e1de9952de6056ade8279a9c34d22e4985565c --- sdk/load-and-run/src/mgblar.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sdk/load-and-run/src/mgblar.cpp b/sdk/load-and-run/src/mgblar.cpp index 87b3a1921..91608d6b2 100644 --- a/sdk/load-and-run/src/mgblar.cpp +++ b/sdk/load-and-run/src/mgblar.cpp @@ -710,6 +710,9 @@ void run_test_st(Args &env) { } } else if (env.use_fast_run) { strategy = S::PROFILE | S::OPTIMIZED; + if (env.reproducible){ + strategy = strategy | S::REPRODUCIBLE; + } } else if (env.reproducible) { strategy = S::HEURISTIC | S::REPRODUCIBLE; } -- GitLab