fix not-found backend library issue 63/280063/1 accepted/tizen_7.0_unified_hotfix tizen_7.0_hotfix accepted/tizen/7.0/unified/hotfix/20221116.105355 accepted/tizen/unified/20220825.063649 submit/tizen/20220823.063557 submit/tizen/20220825.024015 tizen_7.0_m2_release
authorInki Dae <inki.dae@samsung.com>
Tue, 23 Aug 2022 06:10:40 +0000 (15:10 +0900)
committerInki Dae <inki.dae@samsung.com>
Tue, 23 Aug 2022 06:10:40 +0000 (15:10 +0900)
[Version] : 0.4.4
[Issue type] : bug fix

Fixed a bug that library isn't found in case that a backend_name is given
and backend_type isn't -1, which was reported by VD division.

Ps. backend_type will be dropped later because only one path should exist
for one purpose.

Change-Id: I33a27bad14982fa7913fe12fe8f33efc6a9c7c0e
Signed-off-by: Inki Dae <inki.dae@samsung.com>
packaging/inference-engine-interface.spec
src/inference_engine_common_impl.cpp

index 269b1f9..9dad94f 100644 (file)
@@ -1,6 +1,6 @@
 Name:        inference-engine-interface
 Summary:     Interface of inference engines
-Version:     0.4.3
+Version:     0.4.4
 Release:     0
 Group:       Multimedia/Framework
 License:     Apache-2.0
index 3467ee0..a51ae07 100644 (file)
@@ -378,6 +378,16 @@ namespace Common
                        mProfiler.Start(IE_PROFILER_MEMORY);
                }
 
+               if (!config->backend_name.empty()) {
+                       // if backend name is "mlapi" then backend path is decided by a given backend_type.
+                       // Otherwise, backend_name has higher priority than backend_type.
+                       // So other backend name(not mlapi) is given then set backend_type to -1
+                       // so that the backend path can be decided by a given backend_name.
+                       // TODO. drop backend_type later because only one path should exist for one purpose.
+                       if (config->backend_name.compare("mlapi") != 0)
+                               config->backend_type = -1;
+               }
+
                // If backend_type of config is -1 then update it according to backend_name.
                if (config->backend_type == -1) {
                        std::map<std::string,int> BackendTable;