nnapi enabled tflite on i.mx8m nano results negative performance gain

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

nnapi enabled tflite on i.mx8m nano results negative performance gain

425 次查看
Zack_Mak
Contributor I

Hi,

I am testing the imx8mnddr4evk for tflite GPU acceleration.

As I know the i.MX8 nano uses NNAPI for GPU acceleration in tflite. However, in my test setup, the tflite shows negative performance gain when nnapi is enabled for tflite.

I also get the same observation when I run the tflite sample program (label_image) in NXP stock FW images.

The attached log file shows the sample code results from stock FW image version L5.4.47-2.2.0 imx-image-full-imx8mnevk. I ran the sample program right after flashing the FW image without any modifications.

Would you please verify my finding and advise if I have miss something?

Thank you very much.

标签 (1)
0 项奖励
回复
1 回复

390 次查看
joanxie
NXP TechSupport
NXP TechSupport

refer to your log file, when disable nnapi:

0.780392: 653 military uniform

enalbe nnapi:

0.784314: 653 military uniform

Python code, NNAPI enabled:

0.670588: military uniform

it seems the performance improved when you enable NNAPI, what negative performance do you mean?

0 项奖励
回复