Fix backend type issue 95/259395/1
authorInki Dae <inki.dae@samsung.com>
Mon, 7 Jun 2021 07:44:29 +0000 (16:44 +0900)
committerInki Dae <inki.dae@samsung.com>
Mon, 7 Jun 2021 07:47:39 +0000 (16:47 +0900)
Fixed a backend issue that when user requested an inference with
ONE type, it passed TFLITE type instead of ONE.

So this patch passes ONE type to inference-engine-mlapi backend correctly.

Change-Id: Ib91e9880873f1023dfb7bc8bf3b5f838029527a3
Signed-off-by: Inki Dae <inki.dae@samsung.com>
src/inference_engine_common_impl.cpp

index f28e67bbd75914e42d27f7dcd190d0791f410965..5f709a25b9900c92836d4015e8a0c846c7626624 100644 (file)
@@ -328,10 +328,10 @@ namespace Common
                }
 
                // If user requested an inference with ONE backend and CPU/GPU device then
-               // pass TFLITE backend type to MLAPI backend.
+               // pass ONE backend type to MLAPI backend.
                if (backend_type == INFERENCE_BACKEND_ONE &&
                                (device_type & INFERENCE_TARGET_CPU || device_type & INFERENCE_TARGET_GPU))
-                       backend_type = INFERENCE_BACKEND_TFLITE;
+                       backend_type = INFERENCE_BACKEND_ONE;
 
                // If NPU type is declared in ini file then pass the type to
                // a given inference engine backend.