deprecate INFERENCE_BACKEND_MLAPI type 86/268786/2 accepted/tizen/unified/20220110.140020 submit/tizen/20220105.080154 submit/tizen/20220105.081745
authorInki Dae <inki.dae@samsung.com>
Mon, 3 Jan 2022 03:36:23 +0000 (12:36 +0900)
committerInki Dae <inki.dae@samsung.com>
Mon, 3 Jan 2022 03:44:27 +0000 (12:44 +0900)
[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 <inki.dae@samsung.com>
include/inference_engine_type.h
packaging/inference-engine-interface.spec
src/inference_engine_common_impl.cpp

index e4cc6d1..d2572f9 100644 (file)
@@ -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. */
index faced4f..979a627 100644 (file)
@@ -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
index 7658a1e..f3c9f75 100644 (file)
@@ -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