RE: RFC: Tensorflow 2.5.2 packaging
Hi Francis,
> From: Francis Murtagh <Francis.Murtagh@arm.com>
> Sent: Tuesday, March 1, 2022 2:25 PM
> To: Moessbauer, Felix (T CED SES-DE) <felix.moessbauer@siemens.com>; debian-ai@lists.debian.org
> Subject: Re: RFC: Tensorflow 2.5.2 packaging
>
> Hi,
>
> Thanks for the effort getting this working, does this install a tensorflow lite shared library? Other than the pip package?
No, we just build the official tflite python package, but re-package with Debian directory layout.
>
> For [ArmNN](https://github.com/ARM-software/armnn) we normally specify this library using:
>
> ```
> cc_binary(
> name = "libtensorflow_lite_all.so",
> linkshared = 1,
> deps = [
> "//tensorflow/lite:framework",
> "//tensorflow/lite/kernels:builtin_ops",
> ],
> )
> ```
> Salsa is currently down so I can't link the patch diff.
I already saw this patch on salsa. However, I don't think package maintainers should add new targets or change logic.
Did you already try to get that into upstream tensorflow?
Looks like you can use CMake to build a shared monolithic tflite library with cmake. But the name is different (libtensorflowlite_c.so) [1]
Other components like libedgetpu (for coral) seem to attract tflite targets as well. But all that logic is baked in into bazel files, so you cannot easily say that your shared tflite lib should be used.
Currently we just live with that situation.
Is the cmake-generated library different from yours, or why did you choose bazel to build it?
[1] https://www.tensorflow.org/lite/guide/build_cmake#build_tensorflow_lite_c_library
Best regards,
Felix
--
Siemens AG, Technology, T CED SES-DE
Otto-Hahn-Ring 6, 81739 München, Germany
>
> I didn't see tensorflow lite .so in the .install files.
>
> We were trying to get it built along with tenesorflow 2.3.1 but it is currently failing when both bazel builds are ran in same packaging build.
>
> https://wiki.debian.org/MachineLearning/Tensorflow#Building_Tensorflow_Lite
>
> The build log of failure:
> http://www.wookware.org/files/tensorflow_2.3.1-2_amd64-2021-09-14T23:00:37Z.build
>
>
> Kind regards,
> Francis.
> IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately > and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.
Reply to: