Change a function name from SetPluginType to SetPrivateData 75/235275/2
authorInki Dae <inki.dae@samsung.com>
Wed, 3 Jun 2020 08:41:48 +0000 (17:41 +0900)
committerInki Dae <inki.dae@samsung.com>
Wed, 3 Jun 2020 11:00:31 +0000 (20:00 +0900)
Change-Id: I4a0d2ea3345ab650f5ffe9072f8edc79f5fdca98
Signed-off-by: Inki Dae <inki.dae@samsung.com>
src/inference_engine_mlapi.cpp
src/inference_engine_mlapi_private.h

index 4a418ec..d115a52 100644 (file)
@@ -53,10 +53,12 @@ InferenceMLAPI::~InferenceMLAPI()
     std::vector<std::string>().swap(mDesignated_outputs);
 }
 
-int InferenceMLAPI::SetPluginType(int type)
+int InferenceMLAPI::SetPrivateData(void *data)
 {
     LOGI("ENTER");
 
+       inference_backend_type_e type = *(static_cast<inference_backend_type_e *>(data));
+
        if (INFERENCE_BACKEND_NNFW != type && INFERENCE_BACKEND_MLAPI != type) {
                LOGE("Invalid backend type.");
                return INFERENCE_ENGINE_ERROR_NOT_SUPPORTED;
index d695f43..a79ff91 100644 (file)
@@ -39,7 +39,7 @@ public:
     InferenceMLAPI();
     ~InferenceMLAPI();
 
-       int SetPluginType(int type) override;
+    int SetPrivateData(void *data) override;
 
     int SetTargetDevices(int types) override;