Set target device correctly 09/246709/1 tizen_devel_gesture submit/tizen/20201104.021236 submit/tizen/20201109.032237 submit/tizen/20201109.053646 submit/tizen/20201110.032259
authorInki Dae <inki.dae@samsung.com>
Tue, 3 Nov 2020 09:00:39 +0000 (18:00 +0900)
committerInki Dae <inki.dae@samsung.com>
Tue, 3 Nov 2020 09:00:39 +0000 (18:00 +0900)
Change-Id: I0d822d8e28d1c497c9371741397d1018161a09af
Signed-off-by: Inki Dae <inki.dae@samsung.com>
src/inference_engine_common_impl.cpp

index 66a7e9007ddea088f2026290c4100caefad2625b..80031657452aaf3c17d88cebf634b30a37bffd9d 100644 (file)
@@ -296,6 +296,12 @@ out:
                        return INFERENCE_ENGINE_ERROR_NOT_SUPPORTED;
                }
 
+               ret = mBackendHandle->SetTargetDevices(device_type);
+               if (ret != INFERENCE_ENGINE_ERROR_NONE) {
+                       LOGE("Failed to set target device.");
+                       return INFERENCE_ENGINE_ERROR_NOT_SUPPORTED;
+               }
+
                return INFERENCE_ENGINE_ERROR_NONE;
        }
 
@@ -422,6 +428,8 @@ out:
                        return INFERENCE_ENGINE_ERROR_INVALID_PARAMETER;
                }
 
+               LOGI("target device type is %d", types);
+
                int ret = mBackendHandle->SetTargetDevices(types);
                if (ret != INFERENCE_ENGINE_ERROR_NONE)
                        LOGE("Fail to SetTargetDevice");