From: Inki Dae Date: Wed, 13 May 2020 06:50:03 +0000 (+0900) Subject: Drop SetLibraryPath and SetBackendEngine functions X-Git-Tag: submit/tizen/20200602.011936~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=365fef709553ba288cc33ba33672fb988c05df01;p=platform%2Fcore%2Fmultimedia%2Finference-engine-interface.git Drop SetLibraryPath and SetBackendEngine functions These functions aren't needed anymore so drop them. Change-Id: Ifee9279068efdbe7e5aa3e2937c00a7efa5f4c07 Signed-off-by: Inki Dae --- diff --git a/include/inference_engine_common_impl.h b/include/inference_engine_common_impl.h index fb863fd..36c9bcc 100755 --- a/include/inference_engine_common_impl.h +++ b/include/inference_engine_common_impl.h @@ -216,14 +216,6 @@ public: */ int DumpProfileToFile(const std::string filename = "dump.txt"); - /** - * @brief Get inference results. - * - * @since_tizen 5.5 - */ - int SetLibraryPath(std::string path); - int SetBackendEngine(inference_backend_type_e backend); - private: int InitBackendEngine(std::string &backend_path); int CheckTensorBuffers(std::vector &buffers); diff --git a/src/inference_engine_common_impl.cpp b/src/inference_engine_common_impl.cpp index f8634d9..cc1d51b 100755 --- a/src/inference_engine_common_impl.cpp +++ b/src/inference_engine_common_impl.cpp @@ -433,54 +433,5 @@ int InferenceEngineCommon::Run(std::vector &inpu return ret; } -int InferenceEngineCommon::SetLibraryPath(std::string path) -{ - LOGE("ENTER"); - if (path.empty()) - return INFERENCE_ENGINE_ERROR_INVALID_PARAMETER; - - if (fs::is_directory(path)) { - if(path.back() != '/') - path += "/"; - - mBackendLibName = path + mBackendLibName; - } - else { - if (fs::is_regular_file(path)){ - mBackendLibName = path; - } - else { - LOGE("Fail to find path. [%s]", path.c_str()); - return INFERENCE_ENGINE_ERROR_INVALID_PARAMETER; - } - } - LOGE("lib: %s", mBackendLibName.c_str()); - LOGE("LEAVE"); - - return INFERENCE_ENGINE_ERROR_NONE; -} - -int InferenceEngineCommon::SetBackendEngine(inference_backend_type_e backend) -{ - std::string backendString; - switch(backend){ - case INFERENCE_BACKEND_OPENCV: - backendString = "opencv"; - break; - case INFERENCE_BACKEND_TFLITE: - backendString = "tflite"; - break; - case INFERENCE_BACKEND_ARMNN: - backendString = "armnn"; - break; - default: - LOGE("Not supported backend engine [%d]", backend); - return INFERENCE_ENGINE_ERROR_NOT_SUPPORTED; - } - - mBackendLibName = "libinference-engine-" + backendString + ".so"; - - return INFERENCE_ENGINE_ERROR_NONE; -} } /* Common */ } /* InferenceEngineInterface */