Change in-house NN runtime backend name 20/236320/3
authorInki Dae <inki.dae@samsung.com>
Tue, 16 Jun 2020 07:41:41 +0000 (16:41 +0900)
committerInki Dae <inki.dae@samsung.com>
Thu, 18 Jun 2020 07:25:54 +0000 (16:25 +0900)
Official name of NNFW is ONE(On-device Neural Engine)
so use it instead of NNFW.

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

index f8a7d83..c15f555 100644 (file)
@@ -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;
 
index 05f6c62..367ff7c 100644 (file)
@@ -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 =