diff options
author | Inki Dae <inki.dae@samsung.com> | 2023-02-22 16:29:02 +0900 |
---|---|---|
committer | Inki Dae <inki.dae@samsung.com> | 2023-02-22 16:31:37 +0900 |
commit | 6ec769532066ffc01f05eda7f9b3e3f9254a4825 (patch) | |
tree | 9b35fbc35d447d0f754fed5a1b33d19e7e43a4d4 | |
parent | 022e43ee4820bacf9d179bd1907e6a4dd080e70b (diff) | |
download | inference-engine-armnn-tizen.tar.gz inference-engine-armnn-tizen.tar.bz2 inference-engine-armnn-tizen.zip |
fix coverity issueaccepted/tizen/unified/20230316.174026tizenaccepted/tizen_unified
[Version] : 0.0.2
[Issue type] bug fix
CID : 1656258
Fixed a coverity issue, Dead default in switch.
For invalid format type, it will be handled by switch-case statement.
So drop unnecessary exception handling.
Change-Id: I6dee7f5e83682b4c05001317d3f3845980cfb728
Signed-off-by: Inki Dae <inki.dae@samsung.com>
-rw-r--r-- | packaging/inference-engine-armnn.spec | 2 | ||||
-rw-r--r-- | src/inference_engine_armnn.cpp | 9 |
2 files changed, 1 insertions, 10 deletions
diff --git a/packaging/inference-engine-armnn.spec b/packaging/inference-engine-armnn.spec index 2a34d8d..70c12f7 100644 --- a/packaging/inference-engine-armnn.spec +++ b/packaging/inference-engine-armnn.spec @@ -1,6 +1,6 @@ Name: inference-engine-armnn Summary: ARM Neural Network Runtime based implementation of inference-engine-interface -Version: 0.0.1 +Version: 0.0.2 Release: 5 Group: Multimedia/Libraries License: Apache-2.0 diff --git a/src/inference_engine_armnn.cpp b/src/inference_engine_armnn.cpp index 651ca92..daf4b96 100644 --- a/src/inference_engine_armnn.cpp +++ b/src/inference_engine_armnn.cpp @@ -214,15 +214,6 @@ namespace ARMNNImpl { LOGI("ENTER"); - // Make sure to check if a given model format is supported or not. - if (model_format != INFERENCE_MODEL_CAFFE && - model_format != INFERENCE_MODEL_TF && - model_format != INFERENCE_MODEL_TFLITE && - model_format != INFERENCE_MODEL_ONNX) { - LOGE("Invalid model format."); - return INFERENCE_ENGINE_ERROR_NOT_SUPPORTED_FORMAT; - } - int ret = INFERENCE_ENGINE_ERROR_NONE; switch ((int) model_format) { |