MV_INFERENCE_BACKEND_TFLITE, /**< TensorFlow-Lite */
MV_INFERENCE_BACKEND_ARMNN, /**< ARMNN (Since 6.0) */
MV_INFERENCE_BACKEND_MLAPI, /**< Vivante (Since 6.0) */
- MV_INFERENCE_BACKEND_NNFW, /**< NNFW (Since 6.0) */
+ MV_INFERENCE_BACKEND_ONE, /**< On-device Neural Engine (Since 6.0) */
MV_INFERENCE_BACKEND_MAX /**< Backend MAX */
} mv_inference_backend_type_e;
mSupportedInferenceBackend.insert(std::make_pair(MV_INFERENCE_BACKEND_TFLITE, std::make_pair("tflite", false)));
mSupportedInferenceBackend.insert(std::make_pair(MV_INFERENCE_BACKEND_ARMNN, std::make_pair("armnn", false)));
mSupportedInferenceBackend.insert(std::make_pair(MV_INFERENCE_BACKEND_MLAPI, std::make_pair("mlapi", false)));
- mSupportedInferenceBackend.insert(std::make_pair(MV_INFERENCE_BACKEND_NNFW, std::make_pair("mlapi", false)));
+ mSupportedInferenceBackend.insert(std::make_pair(MV_INFERENCE_BACKEND_ONE, std::make_pair("mlapi", false)));
CheckSupportedInferenceBackend();
backendType < MV_INFERENCE_BACKEND_MAX) &&
(backendType != MV_INFERENCE_BACKEND_TFLITE) &&
(backendType != MV_INFERENCE_BACKEND_ARMNN) &&
- (backendType != MV_INFERENCE_BACKEND_NNFW)) {
+ (backendType != MV_INFERENCE_BACKEND_ONE)) {
if ( access(modelConfigFilePath, F_OK)) {
LOGE("modelConfigFilePath in [%s] ", modelConfigFilePath);
ret = MEDIA_VISION_ERROR_INVALID_PATH;
return err;
}
-int perform_nnfw_mobilenetv1_quant_config(mv_engine_config_h *engine_cfg)
+int perform_one_mobilenetv1_quant_config(mv_engine_config_h *engine_cfg)
{
int err = MEDIA_VISION_ERROR_NONE;
handle, MV_INFERENCE_CONFIDENCE_THRESHOLD, 0.6);
mv_engine_config_set_int_attribute(handle, MV_INFERENCE_BACKEND_TYPE,
- MV_INFERENCE_BACKEND_NNFW);
+ MV_INFERENCE_BACKEND_ONE);
mv_engine_config_set_int_attribute(handle, MV_INFERENCE_TARGET_TYPE,
MV_INFERENCE_TARGET_CPU);
"OpenCV(cpu + Squeezenet)",
"ARMNN(cpu + Mobilenet)",
"Vivante(NPU + Inceptionv3)",
- "NNFW(cpu + Mobilenet_Q)",
+ "ONE(cpu + Mobilenet_Q)",
"Prepare",
"Run",
"Back"};
break;
case 6:
{
- // perform NNFW
+ // perform ONE(On-device Neural Engine)
if (engine_cfg) {
int err2 = mv_destroy_engine_config(engine_cfg);
if (err2 != MEDIA_VISION_ERROR_NONE)
printf("Fail to destroy engine_cfg [err:%i]\n", err2);
}
- err = perform_nnfw_mobilenetv1_quant_config(&engine_cfg);
+ err = perform_one_mobilenetv1_quant_config(&engine_cfg);
}
break;
case 7: