[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>
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
{
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) {