tflite Failed to apply NNAPI delegate. on imx8qmmek BSP 5.4.24-2.1.0

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

tflite Failed to apply NNAPI delegate. on imx8qmmek BSP 5.4.24-2.1.0

1,876 次查看
korabelnikov
Contributor III

I use python to load and run my tflite model converted from tensorlfow(keras) resnet18 model

interpreter = tflite.Interpreter(model_path=model_name)

 It works with float32 model and prints out 

INFO: Created TensorFlow Lite delegate for NNAPI.
Applied NNAPI delegate.
561.8170 ms ± 0.1711 ms (std)

 

but when I use uint8 quantized model I've got

INFO: Created TensorFlow Lite delegate for NNAPI.
Failed to apply NNAPI delegate.
275.3198 ms ± 0.1635 ms (std)

 

I have another resnet18 model converted to tflite earlier. It works with NNApi and takes 34 ms.

 

My question is How should I convert models from tensorflow to make nnapi works in tflite on imx8.

 

标签 (1)
1 回复

1,594 次查看
yochaytzur
Contributor I

Did you solve that? I'm having the same problem.

 

0 项奖励