add nntrainer backend support 38/266238/3
authorInki Dae <inki.dae@samsung.com>
Tue, 9 Nov 2021 11:20:36 +0000 (20:20 +0900)
committerInki Dae <inki.dae@samsung.com>
Wed, 10 Nov 2021 09:25:21 +0000 (18:25 +0900)
[Version] : 0.1.0-0
[Issue type] : new feature

Change-Id: I2dde532dc012d066e1ad7b5060ec93b40d781cef
Signed-off-by: Inki Dae <inki.dae@samsung.com>
include/inference_engine_type.h
packaging/inference-engine-interface.spec
src/inference_engine_common_impl.cpp

index f854452..b2d48ce 100644 (file)
@@ -44,6 +44,7 @@ extern "C"
                INFERENCE_BACKEND_ARMNN, /**< ARMNN */
                INFERENCE_BACKEND_MLAPI, /** < ML Single API of NNStreamer.*/
                INFERENCE_BACKEND_ONE, /** < On-device Neural Engine. */
+               INFERENCE_BACKEND_NNTRAINER, /** < NNTrainer. */
                INFERENCE_BACKEND_MAX /**< Backend MAX */
        } inference_backend_type_e;
 
index 4ec1b4f..1f46e10 100644 (file)
@@ -1,7 +1,7 @@
 Name:        inference-engine-interface
 Summary:     Interface of inference engines
-Version:     0.0.3
-Release:     14
+Version:     0.1.0
+Release:     0
 Group:       Multimedia/Framework
 License:     Apache-2.0
 Source0:     %{name}-%{version}.tar.gz
index 5f709a2..a5977aa 100644 (file)
@@ -99,6 +99,7 @@ namespace Common
                if (backend_type == INFERENCE_BACKEND_MLAPI ||
                                device_type == INFERENCE_TARGET_CUSTOM ||
                                backend_type == INFERENCE_BACKEND_ONE ||
+                               backend_type == INFERENCE_BACKEND_NNTRAINER ||
                                (backend_type == INFERENCE_BACKEND_TFLITE && sApiFwForTFLITE == INFERENCE_BACKEND_MLAPI) ||
                                (backend_type == INFERENCE_BACKEND_ARMNN && sApiFwForARMNN == INFERENCE_BACKEND_MLAPI))
                        return 1;
@@ -382,6 +383,7 @@ namespace Common
                        BackendTable.insert(std::make_pair("opencv",INFERENCE_BACKEND_OPENCV));
                        BackendTable.insert(std::make_pair("mlapi",INFERENCE_BACKEND_MLAPI));
                        BackendTable.insert(std::make_pair("one",INFERENCE_BACKEND_ONE));
+                       BackendTable.insert(std::make_pair("nntrainer", INFERENCE_BACKEND_NNTRAINER));
 
                        config->backend_type = BackendTable[config->backend_name];
                }