From 90f1d84f70acab364293631417a2a40157c22f4c Mon Sep 17 00:00:00 2001 From: Inki Dae Date: Mon, 24 Feb 2020 14:44:59 +0900 Subject: [PATCH] Drop GetInferenceResult function GetInferenceResult function isn't used anymore becuase upper framework(Inference class in case of Tizen) is already aware of output tensor buffer so drop this. Change-Id: I16a65f4cb1c63cafe3dedf252481210978bb1baf Signed-off-by: Inki Dae --- common/inference_engine_common_impl.cpp | 12 ------------ include/inference_engine_common.h | 7 ------- include/inference_engine_common_impl.h | 1 - 3 files changed, 20 deletions(-) diff --git a/common/inference_engine_common_impl.cpp b/common/inference_engine_common_impl.cpp index 4535adb..b64a11e 100755 --- a/common/inference_engine_common_impl.cpp +++ b/common/inference_engine_common_impl.cpp @@ -206,18 +206,6 @@ int InferenceEngineCommon::Run(std::vector &inpu return engine->Run(input_buffers, output_buffers); } -int InferenceEngineCommon::GetInferenceResult(tensor_t& results) -{ - LOGE("ENTER"); - int ret = engine->GetInferenceResult(results); - - if (ret != INFERENCE_ENGINE_ERROR_NONE) - LOGE("Fail to GetInferenceResult"); - - LOGE("LEAVE"); - return ret; -} - int InferenceEngineCommon::SetLibraryPath(std::string path) { LOGE("ENTER"); diff --git a/include/inference_engine_common.h b/include/inference_engine_common.h index 82272e0..57e1457 100755 --- a/include/inference_engine_common.h +++ b/include/inference_engine_common.h @@ -159,13 +159,6 @@ public: */ virtual int Run(std::vector &input_buffers, std::vector &output_buffers) = 0; - - /** - * @brief Get inference results. Deprecated. - * - * @since_tizen 5.5 - */ - virtual int GetInferenceResult(tensor_t& results) = 0; }; typedef void destroy_t(IInferenceEngineCommon*); diff --git a/include/inference_engine_common_impl.h b/include/inference_engine_common_impl.h index 46de0de..31742f9 100755 --- a/include/inference_engine_common_impl.h +++ b/include/inference_engine_common_impl.h @@ -211,7 +211,6 @@ public: * * @since_tizen 5.5 */ - int GetInferenceResult(tensor_t& results); int SetLibraryPath(std::string path); int SetBackendEngine(inference_backend_type_e backend); -- 2.34.1