From 73e8da127e1c03f3f58e86337f619570abb72ccb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=89=8D?= Date: Tue, 8 Nov 2022 09:07:33 +0000 Subject: [PATCH] =?UTF-8?q?!17=20=E4=BC=98=E5=8C=96Main=E5=87=BD=E6=95=B0?= =?UTF-8?q?=E5=85=A5=E5=8F=82=E4=B8=AA=E6=95=B0=E5=88=A4=E6=96=AD=E4=BD=8D?= =?UTF-8?q?=E7=BD=AE=20*=20Signed-off-by:=20chenqian=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../tflite/label_classify/label_classify.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/example/deep_learning_framework/tflite/label_classify/label_classify.cpp b/example/deep_learning_framework/tflite/label_classify/label_classify.cpp index c92f44d..b8cf450 100644 --- a/example/deep_learning_framework/tflite/label_classify/label_classify.cpp +++ b/example/deep_learning_framework/tflite/label_classify/label_classify.cpp @@ -323,14 +323,14 @@ int32_t InitSettings(int32_t argc, char** argv, Settings& settings) int32_t Main(int32_t argc, char** argv) { - DelegateProviders delegateProviders; - bool parseResult = delegateProviders.InitFromCmdlineArgs(&argc, const_cast(argv)); - if (!parseResult) { + if (argc <= 1) { + DisplayUsage(); return EXIT_FAILURE; } - if (argc <= 1) { - DisplayUsage(); + DelegateProviders delegateProviders; + bool parseResult = delegateProviders.InitFromCmdlineArgs(&argc, const_cast(argv)); + if (!parseResult) { return EXIT_FAILURE; }