From: Inki Dae Date: Mon, 3 Jan 2022 03:36:23 +0000 (+0900) Subject: deprecate INFERENCE_BACKEND_MLAPI type X-Git-Tag: submit/tizen/20220105.080154^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4aee7ce1c7abc16320c1a71226242459cacdd1dc;p=platform%2Fcore%2Fmultimedia%2Finference-engine-interface.git deprecate INFERENCE_BACKEND_MLAPI type [Version] : 0.4.0-0 [Issue type] : cleanup Deprecated INFERENCE_BACKEND_MLAPI type which is not actual backend type but another API framework. So drop this type. Change-Id: I758240b0e916bf13554694a9232374fe9b3c6efe Signed-off-by: Inki Dae --- diff --git a/include/inference_engine_type.h b/include/inference_engine_type.h index e4cc6d1..d2572f9 100644 --- a/include/inference_engine_type.h +++ b/include/inference_engine_type.h @@ -42,7 +42,7 @@ extern "C" INFERENCE_BACKEND_OPENCV, /**< OpenCV */ INFERENCE_BACKEND_TFLITE, /**< TensorFlow-Lite */ INFERENCE_BACKEND_ARMNN, /**< ARMNN */ - INFERENCE_BACKEND_MLAPI, /** < ML Single API of NNStreamer.*/ + INFERENCE_BACKEND_MLAPI, /** < ML Single API of NNStreamer. (Deprecated sine 7.0) */ INFERENCE_BACKEND_ONE, /** < On-device Neural Engine. */ INFERENCE_BACKEND_NNTRAINER, /** < NNTrainer. */ INFERENCE_BACKEND_SNPE, /** < SNPE. */ diff --git a/packaging/inference-engine-interface.spec b/packaging/inference-engine-interface.spec index faced4f..979a627 100644 --- a/packaging/inference-engine-interface.spec +++ b/packaging/inference-engine-interface.spec @@ -1,6 +1,6 @@ Name: inference-engine-interface Summary: Interface of inference engines -Version: 0.3.1 +Version: 0.4.0 Release: 0 Group: Multimedia/Framework License: Apache-2.0 diff --git a/src/inference_engine_common_impl.cpp b/src/inference_engine_common_impl.cpp index 7658a1e..f3c9f75 100644 --- a/src/inference_engine_common_impl.cpp +++ b/src/inference_engine_common_impl.cpp @@ -318,6 +318,9 @@ namespace Common return INFERENCE_ENGINE_ERROR_INTERNAL; } + if (backend_type == INFERENCE_BACKEND_MLAPI) + LOGW("DEPRECATION WARNING: INFERENCE_BACKEND_MLAPI has been deprecated and will be removed from next release."); + LOGI("backend_type = %d, device_type = %d", backend_type, device_type); // If user set MLAPI type as backend type and device type is CPU or GPU