Ausnahme gefangen: SSL certificate problem: certificate is not yet valid 📌 TensorFlow operation fusion in the TensorFlow Lite converter

🏠 Team IT Security News

TSecurity.de ist eine Online-Plattform, die sich auf die Bereitstellung von Informationen,alle 15 Minuten neuste Nachrichten, Bildungsressourcen und Dienstleistungen rund um das Thema IT-Sicherheit spezialisiert hat.
Ob es sich um aktuelle Nachrichten, Fachartikel, Blogbeiträge, Webinare, Tutorials, oder Tipps & Tricks handelt, TSecurity.de bietet seinen Nutzern einen umfassenden Überblick über die wichtigsten Aspekte der IT-Sicherheit in einer sich ständig verändernden digitalen Welt.

16.12.2023 - TIP: Wer den Cookie Consent Banner akzeptiert, kann z.B. von Englisch nach Deutsch übersetzen, erst Englisch auswählen dann wieder Deutsch!

Google Android Playstore Download Button für Team IT Security



📚 TensorFlow operation fusion in the TensorFlow Lite converter


💡 Newskategorie: AI Videos
🔗 Quelle: blog.tensorflow.org

Posted by Ashwin Murthy, Software Engineer, TensorFlow team @ Google

Overview

Efficiency and performance are critical for edge deployments. TensorFlow Lite achieves this by means of fusing and optimizing a series of more granular TensorFlow operations (which themselves are composed of composite operations, like LSTM) into a single executable TensorFlow Lite unit.

Many users have asked us for more granular control of the way operations can be fused to achieve greater performance improvements. Today, we are delivering just that by providing users with the ability to specify how operations can be fused.

Furthermore, this new capability allows for seamless conversion of TensorFlow Keras LSTM operations—one of our most requested features. And to top it off, you can now plug in a user-defined RNN conversion to TensorFlow Lite!

Fused operations are more efficient

As mentioned earlier, TensorFlow operations are typically composed of a number of primitive, more granular operations, such as tf.add. This is important in order to have a level of reusability, enabling users to create operations that are a composition of existing units. An example of a composite operation is tf.einsum. Executing a composite operation is equivalent to executing each of its constituent operations.

However, with efficiency in mind, it is common to “fuse” the computation of a set of more granular operations into a single operation.

Another use for fused operations is providing a higher level interface to define complex transformations like quantization, which would otherwise be infeasible or very hard to do at a more granular level.

Concrete examples of fused operations in TensorFlow Lite include various RNN operations like Unidirectional and Bidirectional sequence LSTM, convolution (conv2d, bias add, relu), fully connected (matmul, bias add, relu) and more.

Fusing TensorFlow operations into TensorFlow Lite operations has historically been challenging until now!

Out-of-the-box RNN conversion and other composite operation support

Out-of-the-box RNN conversion

We now support conversion of Keras LSTM and Keras Bidirectional LSTM, both of which are composite TensorFlow operations. This is the simplest way to get RNN-based models to take advantage of the efficient LSTM fused operations in TensorFlow Lite. See this notebook for end-to-end keras LSTM to TensorFlow Lite conversion and execution via the TensorFlow Lite interpreter.

Furthermore, we enabled conversion to any other TensorFlow RNN implementation by providing a convenient interface to the conversion infrastructure. You can see a couple of examples of this capability using lingvo’s LSTMCellSimple and LayerNormalizedLSTMCellSimple RNN implementations.

For more information, please look at our RNN conversion documentation.

Note: We are working on adding quantization support for TensorFlow Lite’s LSTM operations. This will be announced in the future.

Extending conversion to other composite operations

We extended the TensorFlow Lite converter to enable conversion of other composite TensorFlow operations into existing or custom TensorFlow Lite operations.

The following steps are needed to implement a TensorFlow operation fusion to TensorFlow Lite:
  1. Wrap the composite operation in a tf.function. In the TensorFlow model source code, identify and abstract out the composite operation into a tf.function with the experimental_implements function annotation.
  2. Write conversion code. Conceptually, the conversion code replaces the composite implementation of this interface with the fused one. In the prepare-composite-functions pass, plug in your conversion code.
  3. Invoke the TensorFlow Lite converter. Use the TFLiteConverter.from_saved_model API to convert to TensorFlow Lite.
For the overall architecture of this infrastructure, see here. For detailed steps with code examples, see here. To learn how operation fusion works under the hood, see the detailed documentation.

Feedback

Please email tflite@tensorflow.org or create a GitHub issue with the component label “TFLiteConverter”.

Acknowledgements

This work would not have been possible without the efforts of Renjie Liu, a key collaborator on this project since its inception. We would like to thank Raziel Alvarez for his leadership and guidance. We would like to thank Jaesung Chung, Scott Zhu, Sean Silva, Mark Sandler, Andrew Selle, Qiao Liang and River Riddle for important contributions. We would like to acknowledge Sarah Sirajuddin, Jared Duke, Lawrence Chan, Tim Davis and the TensorFlow Lite team as well as Tatiana Shpeisman, Jacques Pienaar and the Google MLIR team for their active support of this work. ...



📌 TensorFlow operation fusion in the TensorFlow Lite converter


📈 57.78 Punkte

📌 Inside TensorFlow - New TF Lite Converter


📈 28.2 Punkte

📌 Deep Learning: Tensorflow Lite wird noch kleiner als Tensorflow Mobile


📈 26.11 Punkte

📌 PhotoBooth Lite on Raspberry Pi with TensorFlow Lite


📈 24.96 Punkte

📌 Mate 10 lite, P8 lite (2017) und P10 lite: Android 8.0 Oreo-Beta ist da


📈 23.82 Punkte

📌 P20 Lite vs Mate 10 lite: Huaweis Lite-Modelle im Vergleich


📈 23.82 Punkte

📌 Xiaomi-Mi-Vergleich: Note 10 Lite, 10 Lite, 10, 10 Pro, 10T Lite, 10T, 10T Pro


📈 23.82 Punkte

📌 Medium CVE-2018-16454: Currency converter script project Currency converter script


📈 22.36 Punkte

📌 Medium CVE-2019-15834: Webp converter for media project Webp converter for media


📈 22.36 Punkte

📌 Protected: HitPaw Video Converter: More Than Just A Video Converter, Downloader, Editor


📈 22.36 Punkte

📌 DRS Excel to vCard Converter 22.8 - DRS Excel to vCard Converter for Mac.


📈 22.36 Punkte

📌 URL To Dork Converter & Parameter Converter Tool By PlusUltra


📈 22.36 Punkte

📌 How To Install Soundconverter Audio Converter App In Ubuntu – A Audio File Converter For Linux


📈 22.36 Punkte

📌 CalcVerter 5.3 - All-in-one unit converter, calculator, and more (was Converter).


📈 22.36 Punkte

📌 DRS PST Converter 22.3 - PST Converter for Mac tool to convert Outlook data files.


📈 22.36 Punkte

📌 Adobe DNG Converter 15.2 - Digital negative converter update.


📈 22.36 Punkte

📌 AnyRec Video Converter 1.0.26.16041 - Powerful video and audio converter with 50x faster speed.


📈 22.36 Punkte

📌 Converter 3.6 - Prime measurement converter metric, imperial, currency and others.


📈 22.36 Punkte

📌 Movavi Video Converter 23.0.1 - Easy-to-use video and audio file converter.


📈 22.36 Punkte

📌 H265 Converter Pro 4.1 - The H.265/HEVC Video Converter.


📈 22.36 Punkte

📌 Alles, was ein Video-Converter braucht im Freemake Video Converter (2020)


📈 22.36 Punkte

📌 MacX Video Converter Pro 6.8.2 - High-speed converter for HD/SD videos.


📈 22.36 Punkte

📌 Security Operation Center (SOC) FAQ: Was Unternehmen über Security Operation Center wissen müssen


📈 20.62 Punkte

📌 Great news!.. Rename and copy operation globally by PCRE2-controlled bash script rename operation


📈 20.62 Punkte

📌 Micro Focus Operation Bridge Manager/Operation Bridge Privileges access control


📈 20.62 Punkte

📌 Operation Cronos: law enforcement disrupted the LockBit operation


📈 20.62 Punkte

📌 More details about Operation Cronos that disrupted Lockbit operation


📈 20.62 Punkte

📌 Operation Texonto: Information operation targeting Ukrainian speakers in the context of the war


📈 20.62 Punkte

📌 Operation Hotel – Ecuador spent millions on spy operation for Julian Assange


📈 20.62 Punkte

📌 CrowdStrike Falcon Fusion optimiert das Security Operation Center mit automatisierten Workflows ...


📈 20.49 Punkte

📌 HoloLens 2 swapped for Apple Vision Pro in UK spinal fusion operation


📈 20.49 Punkte

📌 High CVE-2019-12099: Php-fusion Php-fusion


📈 20.36 Punkte

📌 Fusion - US-Regulierungsbehörde dürfte Fusion von T-Mobile US und Sprint genehmigen


📈 20.36 Punkte

📌 Fusion - US-Regulierungsbehörde dürfte Fusion von T-Mobile US und Sprint genehmigen


📈 20.36 Punkte











matomo