From 34100a1c84ce9f06104f1cd29b0bd64caf9bd1d8 Mon Sep 17 00:00:00 2001 From: Inki Dae Date: Tue, 3 Nov 2020 18:00:39 +0900 Subject: [PATCH] Set target device correctly Change-Id: I0d822d8e28d1c497c9371741397d1018161a09af Signed-off-by: Inki Dae --- src/inference_engine_common_impl.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/inference_engine_common_impl.cpp b/src/inference_engine_common_impl.cpp index 66a7e90..8003165 100644 --- a/src/inference_engine_common_impl.cpp +++ b/src/inference_engine_common_impl.cpp @@ -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"); -- 2.34.1