return INFERENCE_ENGINE_ERROR_NOT_SUPPORTED;
}
+ ret = mBackendHandle->SetTargetDevices(device_type);
+ if (ret != INFERENCE_ENGINE_ERROR_NONE) {
+ LOGE("Failed to set target device.");
+ return INFERENCE_ENGINE_ERROR_NOT_SUPPORTED;
+ }
+
return INFERENCE_ENGINE_ERROR_NONE;
}
return INFERENCE_ENGINE_ERROR_INVALID_PARAMETER;
}
+ LOGI("target device type is %d", types);
+
int ret = mBackendHandle->SetTargetDevices(types);
if (ret != INFERENCE_ENGINE_ERROR_NONE)
LOGE("Fail to SetTargetDevice");
61, 36, 59, 36, 52, 39, 35, 32, 40, 34,
62, 39, 70, 40, 58, 41, 34, 42, 34, 41,
38, 38, 12 }),
+ // TFLITE 2.3 GPU delegate
+ ParamType_Infer("tflite", INFERENCE_TARGET_GPU, TEST_AIC_HAND_GESTURE_1, 100, INFERENCE_TENSOR_DATA_TYPE_FLOAT32,
+ { "/opt/usr/images/hand.bin" }, 224, 224, 3, { "input" }, { "mobilenetv2/boundingbox", "mobilenetv2/heatmap" },
+ { "/usr/share/capi-media-vision/models/PE_1/tflite/posenet1_lite_224.tflite" }, { 0 }),
+ ParamType_Infer("tflite", INFERENCE_TARGET_GPU, TEST_AIC_HAND_GESTURE_2, 100, INFERENCE_TENSOR_DATA_TYPE_FLOAT32,
+ { "/opt/usr/images/hand.bin" }, 56, 56, 21, { "input" }, { "mobilenetv2/coord_refine", "mobilenetv2/gesture" },
+ { "/usr/share/capi-media-vision/models/PE_2/tflite/posenet2_lite_224.tflite" },
+ { 55, 39, 51, 40, 50, 42, 61, 43, 71, 39,
+ 78, 36, 82, 42, 82, 44, 83, 45, 35, 37,
+ 61, 36, 59, 36, 52, 39, 35, 32, 40, 34,
+ 62, 39, 70, 40, 58, 41, 34, 42, 34, 41,
+ 38, 38, 12 }),
// TFLITE via MLAPI
ParamType_Infer("mlapi", INFERENCE_TARGET_CPU, TEST_AIC_HAND_GESTURE_1, 100, INFERENCE_TENSOR_DATA_TYPE_FLOAT32,
{ "/opt/usr/images/hand.bin" }, 224, 224, 3, { "input" }, { "mobilenetv2/boundingbox", "mobilenetv2/heatmap" },