From 4524a72693da86b4f41fe626b0faded18c9a33e3 Mon Sep 17 00:00:00 2001 From: Hyeongseok Oh Date: Wed, 14 Aug 2024 09:51:51 +0900 Subject: [PATCH] [onert/onert_run] Allow shape_prepare and shape_run together (#13654) This commit updates argument policy to allow shape_prepare and shape_run together. ONE-DCO-1.0-Signed-off-by: Hyeongseok Oh --- tests/tools/onert_run/src/args.cc | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/tests/tools/onert_run/src/args.cc b/tests/tools/onert_run/src/args.cc index dd4857c6efb..f44ed56769f 100644 --- a/tests/tools/onert_run/src/args.cc +++ b/tests/tools/onert_run/src/args.cc @@ -342,18 +342,8 @@ void Args::Parse(const int argc, char **argv) _mem_poll = _arser.get("--mem_poll"); _write_report = _arser.get("--write_report"); - // calling, e.g., "onert_run .. -- shape_prepare .. --shape_run .." should theoretically - // work but allowing both options together on command line makes the usage and implemenation - // of onert_run too complicated. Therefore let's not allow those option together. auto shape_prepare = _arser.get("--shape_prepare"); auto shape_run = _arser.get("--shape_run"); - if (!shape_prepare.empty() && !shape_run.empty()) - { - std::cerr << "Two options '--shape_prepare' and '--shape_run' cannot be given at once" - << std::endl; - exit(1); - } - if (!shape_prepare.empty()) { #if defined(ONERT_HAVE_HDF5) && ONERT_HAVE_HDF5 == 1