Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
What's New in TensorFlow 2.0

You're reading from   What's New in TensorFlow 2.0 Use the new and improved features of TensorFlow to enhance machine learning and deep learning

Arrow left icon
Product type Paperback
Published in Aug 2019
Publisher Packt
ISBN-13 9781838823856
Length 202 pages
Edition 1st Edition
Languages
Arrow right icon
Authors (3):
Arrow left icon
Tanish Baranwal Tanish Baranwal
Author Profile Icon Tanish Baranwal
Tanish Baranwal
Alizishaan Khatri Alizishaan Khatri
Author Profile Icon Alizishaan Khatri
Alizishaan Khatri
Ajay Baranwal Ajay Baranwal
Author Profile Icon Ajay Baranwal
Ajay Baranwal
Arrow right icon
View More author details
Toc

Table of Contents (13) Chapters Close

Preface 1. Section 1: TensorFlow 2.0 - Architecture and API Changes
2. Getting Started with TensorFlow 2.0 FREE CHAPTER 3. Keras Default Integration and Eager Execution 4. Section 2: TensorFlow 2.0 - Data and Model Training Pipelines
5. Designing and Constructing Input Data Pipelines 6. Model Training and Use of TensorBoard 7. Section 3: TensorFlow 2.0 - Model Inference and Deployment and AIY
8. Model Inference Pipelines - Multi-platform Deployments 9. AIY Projects and TensorFlow Lite 10. Section 4: TensorFlow 2.0 - Migration, Summary
11. Migrating From TensorFlow 1.x to 2.0 12. Other Books You May Enjoy

Summary

TFLite is a feature of TF2.0 that takes a TF model and compresses and optimizes it to run on an embedded Linux device, or a low-power and low-binary device. Converting a TF model into a TFLite model can be done in three ways: from a saved model, a tf.keras model, or a concrete function. Once the model has been converted, a .tflite file will be created, which can then be transferred to the desired device and run using the TFLite interpreter. This model is optimized to use hardware acceleration and is stored in FlatBuffer format for quick read speeds. Other optimization techniques can be applied to the model, such as quantization, which converts the 32-bit floating point numbers into 8-bit fixed-point numbers, with a tradeoff of a minimal amount of accuracy. Some devices that TFLite can be run on are the Edge TPU, the NVIDIA Jetson Nano, and the Raspberry Pi. Google also...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime