Fixed seg. fault issue with GPU delegate of Tensorflow lite 2.7.
With Tensorflow lite 2.7 GPU delegate creation needs a default option.
So this patch gets a default option for creating GPU delegate by calling
TfLiteGpuDelegateOptionsV2Default().
[Versin] 0.0.2-0
[Issue type] bug fix
Change-Id: I4a99377e393aacb415de62ac9004c3095623d923
Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Name: inference-engine-tflite
Summary: Tensorflow-Lite based implementation of inference-engine-interface
-Version: 0.0.1
-Release: 14
+Version: 0.0.2
+Release: 0
Group: Multimedia/Libraries
License: Apache-2.0
Source0: %{name}-%{version}.tar.gz
LOGI("Inferece targets are: [%d]", mTargetTypes);
if (mTargetTypes == INFERENCE_TARGET_GPU) {
- TfLiteDelegate *delegate = TfLiteGpuDelegateV2Create(nullptr);
+ TfLiteGpuDelegateOptionsV2 options = TfLiteGpuDelegateOptionsV2Default();
+ TfLiteDelegate *delegate = TfLiteGpuDelegateV2Create(&options);
if (!delegate){
LOGE("Failed to GPU delegate");
return INFERENCE_ENGINE_ERROR_INVALID_OPERATION;