Browse Source

feat(mgb): load_and_run can set both fastrun and reproducible

GitOrigin-RevId: 14e1de9952
release-1.4
Megvii Engine Team 4 years ago
parent
commit
0678a169be
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      sdk/load-and-run/src/mgblar.cpp

+ 3
- 0
sdk/load-and-run/src/mgblar.cpp View File

@@ -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;
}


Loading…
Cancel
Save