Mickeldore 6.1.36 how to compile libtensorflowlite.so with flexdelegate support

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

Mickeldore 6.1.36 how to compile libtensorflowlite.so with flexdelegate support

353 次查看
dwightk
Contributor III

Hello,

I am trying to execute a model on IMX8 Mickeldore 6.1.36 BSP. This model requires FlexStridedSlice and FlexTranspose operations which are supported by the Flex delegate.

By default the libtensorflowlite.so does not support this. 

According to online information, the library can be recompiled with a flag, as shown below.

Please comment

a) if flexdelegate can be supported for IMX8MPLUS 6.1.36 Mickeldore distribution by recompiling, as shown.

b) Where can we locate the libtensorflow source to compile the .so.

Thanks in advance.

------------------------

tflite_cc_shared_object(
name = "libtensorflowlite.so",
linkopts = select({
"//tensorflow:macos": [
"-Wl,-exported_symbols_list,$(location //tensorflow/lite:tflite_exported_symbols.lds)",
"-Wl,-install_name,@rpath/libtensorflowlite.so",
],
"//tensorflow:windows": [],
"//conditions:default": [
"-z defs",
"-Wl,--version-script,$(location //tensorflow/lite:tflite_version_script.lds)",
],
}),
deps = [
":framework",
":tflite_exported_symbols.lds",
":tflite_version_script.lds",
"//tensorflow/lite/kernels:builtin_ops",
"//tensorflow/lite/delegates/flex:delegate",
],
)

0 项奖励
回复
1 回复

335 次查看
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi @dwightk 

You can refer i.MX Machine Learning User's Guide.pdf in this page:https://www.nxp.com/design/design-center/software/embedded-software/i-mx-software/embedded-linux-for...

For recompile TF lite with Flex Delegate, please refer 2.6.2.3 Building the TensorFlow Lite with Flex Delegate

Zhiming_Liu_0-1707013059469.png

 

0 项奖励
回复