Drop SetLibraryPath and SetBackendEngine functions 34/233234/3
authorInki Dae <inki.dae@samsung.com>
Wed, 13 May 2020 06:50:03 +0000 (15:50 +0900)
committerInki Dae <inki.dae@samsung.com>
Wed, 13 May 2020 08:54:14 +0000 (17:54 +0900)
These functions aren't needed anymore so drop them.

Change-Id: Ifee9279068efdbe7e5aa3e2937c00a7efa5f4c07
Signed-off-by: Inki Dae <inki.dae@samsung.com>
include/inference_engine_common_impl.h
src/inference_engine_common_impl.cpp

index fb863fd..36c9bcc 100755 (executable)
@@ -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<inference_engine_tensor_buffer> &buffers);
index f8634d9..cc1d51b 100755 (executable)
@@ -433,54 +433,5 @@ int InferenceEngineCommon::Run(std::vector<inference_engine_tensor_buffer> &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 */