xnnpack in tensorflow lite for imx8 plus

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

xnnpack in tensorflow lite for imx8 plus

跳至解决方案
4,212 次查看
dnozik
Contributor II

Hi ,

I working on  Imx8 plus board. (zeus-5.4.70-2.3.0).

I trying to execute my models with Tensorflow Lite (version  imx_5.4.70_2.3.0 ) via XNNPack delegate. looks like in Makefile there is default value  CXXFLAGS += -DTFLITE_WITHOUT_XNNPACK

Is there a reason XNNPack disabled?

0 项奖励
回复
1 解答
4,187 次查看
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello,

 

For TFLITE_WITHOUT_XNNPACK, it's disabled because not built with Makefile as below.

 

commit b9b739285e46ca0bdc54641bf7351463cf8aa928
Author: Terry Heo <terryheo@google.com>
Date:   Thu Mar 19 05:03:41 2020 -0700

    Fix Makefile build

    Since XNNPACK isn't buildable with Makefile, it should be disabled for Makefile build.

 

For 1# and 3#, BSP 5.10.9_1.0.0 is embedded with Tensorflow v2.4 and XNNPACK is enabled by default.

As for 2#, from 5.10.9 user guide (IMXMLUG), XNNPACK goes through CPU but not NPU.

Bio_TICFSL_0-1623332657206.png

 

Regards

在原帖中查看解决方案

0 项奖励
回复
3 回复数
4,208 次查看
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello dnozik,

 

The XNNPack is disable in the actual version of tensorflow lite, however with the TensorFlow 2.3 release, XNNPACK backend is included with the pre-built TensorFlow Lite binaries for Linux and Android BSP. 

Regards

 

0 项奖励
回复
4,204 次查看
dnozik
Contributor II

Hi , 

thanks for reply .

1. Where can I find tensorflow lite prebuild library.

2.Does this prebuild library will also support IMX8 plus NPU delegate ?

3.We building all our libraries as part of image yocto recipe build , is there recipe with tensorflow branch with NNAPI and XNNPack for NPU/CPU ?

 

thanks

0 项奖励
回复
4,188 次查看
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello,

 

For TFLITE_WITHOUT_XNNPACK, it's disabled because not built with Makefile as below.

 

commit b9b739285e46ca0bdc54641bf7351463cf8aa928
Author: Terry Heo <terryheo@google.com>
Date:   Thu Mar 19 05:03:41 2020 -0700

    Fix Makefile build

    Since XNNPACK isn't buildable with Makefile, it should be disabled for Makefile build.

 

For 1# and 3#, BSP 5.10.9_1.0.0 is embedded with Tensorflow v2.4 and XNNPACK is enabled by default.

As for 2#, from 5.10.9 user guide (IMXMLUG), XNNPACK goes through CPU but not NPU.

Bio_TICFSL_0-1623332657206.png

 

Regards

0 项奖励
回复