From: Inki Dae Date: Mon, 10 Feb 2020 06:28:23 +0000 (+0900) Subject: Implement GetBackendCapacity callback X-Git-Tag: submit/tizen/20200423.063253~62 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=41b27d8237dc043c9a5181c28f223c789c408c16;p=platform%2Fcore%2Fmultimedia%2Finference-engine-interface.git Implement GetBackendCapacity callback Change-Id: I4f30d077f85a54d09bd97b22a353f564d34a9a33 Signed-off-by: Inki Dae --- diff --git a/common/inference_engine_common_impl.cpp b/common/inference_engine_common_impl.cpp index 7286efb..0501c6c 100755 --- a/common/inference_engine_common_impl.cpp +++ b/common/inference_engine_common_impl.cpp @@ -233,10 +233,7 @@ int InferenceEngineCommon::SetOutputTensorProperty(inference_engine_layer_proper int InferenceEngineCommon::GetBackendCapacity(inference_engine_capacity *capacity) { - LOGI("ENTER"); - LOGI("LEAVE"); - - return INFERENCE_ENGINE_ERROR_NONE; + return engine->GetBackendCapacity(capacity); } int InferenceEngineCommon::Run() diff --git a/include/inference_engine_common.h b/include/inference_engine_common.h index e446b4f..168acf1 100755 --- a/include/inference_engine_common.h +++ b/include/inference_engine_common.h @@ -120,7 +120,7 @@ public: * * @since_tizen 6.0 */ - virtual int GetBackendCapacity(inference_engine_capacity *capacity) { return 0; } + virtual int GetBackendCapacity(inference_engine_capacity *capacity) = 0; /** * @brief Run an inference. Deprecated. diff --git a/include/inference_engine_type.h b/include/inference_engine_type.h index c2af1c7..c2bd4b2 100644 --- a/include/inference_engine_type.h +++ b/include/inference_engine_type.h @@ -172,7 +172,7 @@ typedef struct _inference_engine_layer_property { * @since_tizen 6.0 */ typedef struct _inference_engine_capacity { - std::vector supported_accel_devices; + int supported_accel_devices; inference_tensor_shape_e supported_tensor_shape; std::vector supported_nn_models; // TODO.