summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorInki Dae <inki.dae@samsung.com>2021-11-24 18:11:54 +0900
committerInki Dae <inki.dae@samsung.com>2021-11-24 18:11:54 +0900
commit99114d5faa27998c3781eb7e5bfbab8f43400082 (patch)
tree5dcd38a693387c36e06ed0dd58b7632c803be1c3
parenta8639468bd02c6d1ba0896cccf16e867e8448363 (diff)
downloadinference-engine-mlapi-99114d5faa27998c3781eb7e5bfbab8f43400082.tar.gz
inference-engine-mlapi-99114d5faa27998c3781eb7e5bfbab8f43400082.tar.bz2
inference-engine-mlapi-99114d5faa27998c3781eb7e5bfbab8f43400082.zip
add SNPE tensor filter support
[Version] : 0.3.0-0 [Issue type] : new feature Change-Id: If3c8591938e35b0d84bf0c2c2f12bb0e50b84cd5 Signed-off-by: Inki Dae <inki.dae@samsung.com>
-rw-r--r--packaging/inference-engine-mlapi.spec2
-rw-r--r--src/inference_engine_mlapi.cpp7
2 files changed, 8 insertions, 1 deletions
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;