Book Image

Deep Learning with TensorFlow 2 and Keras - Second Edition

By : Antonio Gulli, Amita Kapoor, Sujit Pal
Book Image

Deep Learning with TensorFlow 2 and Keras - Second Edition

By: Antonio Gulli, Amita Kapoor, Sujit Pal

Overview of this book

Deep Learning with TensorFlow 2 and Keras, Second Edition teaches neural networks and deep learning techniques alongside TensorFlow (TF) and Keras. You’ll learn how to write deep learning applications in the most powerful, popular, and scalable machine learning stack available. TensorFlow is the machine learning library of choice for professional applications, while Keras offers a simple and powerful Python API for accessing TensorFlow. TensorFlow 2 provides full Keras integration, making advanced machine learning easier and more convenient than ever before. This book also introduces neural networks with TensorFlow, runs through the main applications (regression, ConvNets (CNNs), GANs, RNNs, NLP), covers two working example apps, and then dives into TF in production, TF mobile, and using TensorFlow with AutoML.
Table of Contents (19 chapters)
17
Other Books You May Enjoy
18
Index

Keras or tf.keras?

Another legitimate question is whether you should use Keras with TensorFlow as a backend or, instead, use the APIs in tf.keras directly available in TensorFlow. Note that there is not a 1:1 correspondence between Keras and tf.keras. Many endpoints in tf.keras are not implemented in Keras and tf.Keras does not support multiple backends as Keras. So, Keras or tf.keras? My suggestion is the second option rather than the first one. tf.keras has multiple advantages over Keras, consisting of TensorFlow enhancements discussed in this chapter (eager execution; native support for distributed training, including training on TPUs; and support for the TensorFlow SavedModel exchange format). However, the first option is still the most relevant one if you plan to write highly portable code that can run on multiple backends, including Google TensorFlow, Microsoft CNTK, Amazon MXnet, and Theano. Note that Keras is an independent open source project, and its development is not dependent...