summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorInki Dae <inki.dae@samsung.com>2020-06-11 18:07:52 +0900
committerInki Dae <inki.dae@samsung.com>2020-06-26 08:58:22 +0900
commit2eb7a667f69da6ebbe4c75078c7aa1c61f08535b (patch)
treec11273a35c6f0f04e1c01b3bc255ca930b429b7e
parenta7ca960719948ef5dff51ba6043376a07c6b3506 (diff)
downloadmediavision-2eb7a667f69da6ebbe4c75078c7aa1c61f08535b.tar.gz
mediavision-2eb7a667f69da6ebbe4c75078c7aa1c61f08535b.tar.bz2
mediavision-2eb7a667f69da6ebbe4c75078c7aa1c61f08535b.zip
mv_inference: Do not check a config file in case of NNFW backend
NNFW backend doesn't need a config file so skip checking this file. Change-Id: Ia18b2dee23326a2f07398c69829f80eb48cf8553 Signed-off-by: Inki Dae <inki.dae@samsung.com>
-rw-r--r--mv_inference/inference/src/mv_inference_open.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/mv_inference/inference/src/mv_inference_open.cpp b/mv_inference/inference/src/mv_inference_open.cpp
index e63d2b92..521d72b5 100644
--- a/mv_inference/inference/src/mv_inference_open.cpp
+++ b/mv_inference/inference/src/mv_inference_open.cpp
@@ -181,7 +181,8 @@ int mv_inference_configure_model_open(mv_inference_h infer,
if ((backendType > MV_INFERENCE_BACKEND_NONE &&
backendType < MV_INFERENCE_BACKEND_MAX) &&
(backendType != MV_INFERENCE_BACKEND_TFLITE) &&
- (backendType != MV_INFERENCE_BACKEND_ARMNN)) {
+ (backendType != MV_INFERENCE_BACKEND_ARMNN) &&
+ (backendType != MV_INFERENCE_BACKEND_NNFW)) {
if (access(modelConfigFilePath, F_OK)) {
LOGE("modelConfigFilePath in [%s] ", modelConfigFilePath);
ret = MEDIA_VISION_ERROR_INVALID_PATH;