From: Inki Dae Date: Tue, 16 Jun 2020 07:41:41 +0000 (+0900) Subject: Change in-house NN runtime backend name X-Git-Tag: submit/tizen/20200626.050805~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c77c93eaaa49d4408464cea2048936dfbac6938f;p=platform%2Fcore%2Fmultimedia%2Finference-engine-interface.git Change in-house NN runtime backend name Official name of NNFW is ONE(On-device Neural Engine) so use it instead of NNFW. Change-Id: I42ea92df4d9e3e7694d16b673b26db9e375575c0 Signed-off-by: Inki Dae --- diff --git a/include/inference_engine_type.h b/include/inference_engine_type.h index f8a7d83..c15f555 100644 --- a/include/inference_engine_type.h +++ b/include/inference_engine_type.h @@ -40,7 +40,7 @@ extern "C" INFERENCE_BACKEND_TFLITE, /**< TensorFlow-Lite */ INFERENCE_BACKEND_ARMNN, /**< ARMNN */ INFERENCE_BACKEND_MLAPI, /** < ML Single API of NNStreamer.*/ - INFERENCE_BACKEND_NNFW, /** < NNFW */ + INFERENCE_BACKEND_ONE, /** < On-device Neural Engine. */ INFERENCE_BACKEND_MAX /**< Backend MAX */ } inference_backend_type_e; diff --git a/src/inference_engine_common_impl.cpp b/src/inference_engine_common_impl.cpp index 05f6c62..367ff7c 100644 --- a/src/inference_engine_common_impl.cpp +++ b/src/inference_engine_common_impl.cpp @@ -210,8 +210,8 @@ namespace Common return INFERENCE_ENGINE_ERROR_INTERNAL; } - // If a backend is ML Single API of NNStreamer or NNFW then set a tensor filter plugin type. - if (backend_type == INFERENCE_BACKEND_NNFW || + // If a backend is ML Single API of NNStreamer or ONE then set a tensor filter plugin type. + if (backend_type == INFERENCE_BACKEND_ONE || backend_type == INFERENCE_BACKEND_MLAPI) { int ret = mBackendHandle->SetPrivateData(&backend_type); if (ret != INFERENCE_ENGINE_ERROR_NONE) { @@ -284,7 +284,7 @@ namespace Common [INFERENCE_BACKEND_TFLITE] = "tflite", [INFERENCE_BACKEND_ARMNN] = "armnn", [INFERENCE_BACKEND_MLAPI] = "mlapi", - [INFERENCE_BACKEND_NNFW] = "mlapi" + [INFERENCE_BACKEND_ONE] = "mlapi" }; std::string backendLibName =