mv_machine_learning: load backend path ini file 19/316019/1 accepted/tizen/7.0/unified/20241210.170541
authorInki Dae <inki.dae@samsung.com>
Fri, 6 Dec 2024 05:10:01 +0000 (14:10 +0900)
committerInki Dae <inki.dae@samsung.com>
Fri, 6 Dec 2024 05:12:44 +0000 (14:12 +0900)
Load backend path ini file in default.

MV_INFERENCE_BACKEND_MLAPI type has been deprecated so inference engine
mlapi backend should be used in default by inference_engine_backend_path.ini
file.

Change-Id: If0fbdbfa07fba60e9d8939f9ce3cfe49ff9e01e4
Signed-off-by: Inki Dae <inki.dae@samsung.com>
mv_machine_learning/inference/src/Inference.cpp

index d512d4a805b3262d184880b60696c9d2f8958575..7c434f1adfca6ff8707835fda9a2ee839dcabfca 100644 (file)
@@ -688,14 +688,9 @@ int Inference::Bind(int backend_type, int device_type)
                return MEDIA_VISION_ERROR_OUT_OF_MEMORY;
        }
 
-       ret = MEDIA_VISION_ERROR_NONE;
-
-       // Load configuration file if a given backend type is mlapi.
-       if (config.backend_type == MV_INFERENCE_BACKEND_MLAPI) {
-               ret = mBackend->LoadConfigFile();
-               if (ret != INFERENCE_ENGINE_ERROR_NONE) {
-                       return MEDIA_VISION_ERROR_INVALID_OPERATION;
-               }
+       ret = mBackend->LoadConfigFile();
+       if (ret != INFERENCE_ENGINE_ERROR_NONE) {
+               return MEDIA_VISION_ERROR_INVALID_OPERATION;
        }
 
        // Bind a backend library.