From: Inki Dae Date: Wed, 24 Nov 2021 09:11:54 +0000 (+0900) Subject: add SNPE tensor filter support X-Git-Tag: accepted/tizen/unified/20220110.140037~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F34%2F267034%2F1;p=platform%2Fcore%2Fmultimedia%2Finference-engine-mlapi.git add SNPE tensor filter support [Version] : 0.3.0-0 [Issue type] : new feature Change-Id: If3c8591938e35b0d84bf0c2c2f12bb0e50b84cd5 Signed-off-by: Inki Dae --- diff --git a/packaging/inference-engine-mlapi.spec b/packaging/inference-engine-mlapi.spec index 717393b..a9bce91 100644 --- a/packaging/inference-engine-mlapi.spec +++ b/packaging/inference-engine-mlapi.spec @@ -1,6 +1,6 @@ Name: inference-engine-mlapi Summary: ML Single API backend of NNStreamer for MediaVision -Version: 0.2.0 +Version: 0.3.0 Release: 0 Group: Multimedia/Libraries License: Apache-2.0 diff --git a/src/inference_engine_mlapi.cpp b/src/inference_engine_mlapi.cpp index b5e823e..9a5c2f8 100644 --- a/src/inference_engine_mlapi.cpp +++ b/src/inference_engine_mlapi.cpp @@ -231,6 +231,7 @@ namespace MLAPIImpl case INFERENCE_BACKEND_ONE: case INFERENCE_BACKEND_ARMNN: case INFERENCE_BACKEND_TFLITE: + case INFERENCE_BACKEND_SNPE: if (mPluginType == INFERENCE_BACKEND_ONE) { nnfw_type = ML_NNFW_TYPE_NNFW; @@ -258,6 +259,12 @@ namespace MLAPIImpl LOGI("TFLITE tensor filter will be used."); } + if (mPluginType == INFERENCE_BACKEND_SNPE) { + nnfw_type = ML_NNFW_TYPE_SNPE; + nnfw_hw = ML_NNFW_HW_ANY; + LOGI("SNPE tensor filter will be used."); + } + if (access(model_str.c_str(), R_OK)) { LOGE("model file path in [%s]", model_str.c_str()); return INFERENCE_ENGINE_ERROR_INVALID_PATH;