Mickeldore 6.1.36 how to compile libtensorflowlite.so with flexdelegate support

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Mickeldore 6.1.36 how to compile libtensorflowlite.so with flexdelegate support

279件の閲覧回数
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 返信

261件の閲覧回数
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 件の賞賛
返信