Learning TensorFlow
A Guide to Building Deep Learning Systems
Tom Hope, Yehezkel S. Resheff, and Itay Lieder
2
Learning TensorFlow
by Tom Hope, Yehezkel S. Resheff, and Itay Lieder Copyright © 2017 Tom Hope, Itay
Lieder, and Yehezkel S. Resheff. All rights reserved.
Printed in the United States of America.
Published by O’Reilly Media, Inc., 1005 Gravenstein Highway North, Sebastopol, CA
95472.
O’Reilly books may be purchased for educational, business, or sales promotional use.
Online editions are also available for most titles (http://oreilly.com/safari). For more
information, contact our corporate/institutional sales department: 800-998-9938 or
corporate@oreilly.com.
Editor: Nicole Tache
Production Editor: Shiny Kalapurakkel
Copyeditor: Rachel Head
Proofreader: Sharon Wilkey
Indexer: Judith McConville
Interior Designer: David Futato
Cover Designer: Karen Montgomery
Illustrator: Rebecca Demarest
August 2017: First Edition
3
Revision History for the First Edition
2017-08-04: First Release
The O’Reilly logo is a registered trademark of O’Reilly Media, Inc. Learning
TensorFlow, the cover image, and related trade dress are trademarks of O’Reilly
Media, Inc.
While the publisher and the authors have used good faith efforts to ensure that the
information and instructions contained in this work are accurate, the publisher and
the authors disclaim all responsibility for errors or omissions, including without
limitation responsibility for damages resulting from the use of or reliance on this
work. Use of the information and instructions contained in this work is at your own
risk. If any code samples or other technology this work contains or describes is
subject to open source licenses or the intellectual property rights of others, it is your
responsibility to ensure that your use thereof complies with such licenses and/or
rights.
978-1-491-97851-1
[M]
4
Preface
Deep learning has emerged in the last few years as a premier technology for building
intelligent systems that learn from data. Deep neural networks, originally roughly
inspired by how the human brain learns, are trained with large amounts of data to
solve complex tasks with unprecedented accuracy. With open source frameworks
making this technology widely available, it is becoming a must-know for anybody
involved with big data and machine learning.
TensorFlow is currently the leading open source software for deep learning, used by a
rapidly growing number of practitioners working on computer vision, natural
language processing (NLP), speech recognition, and general predictive analytics.
This book is an end-to-end guide to TensorFlow designed for data scientists,
engineers, students, and researchers. The book adopts a hands-on approach suitable
for a broad technical audience, allowing beginners a gentle start while diving deep
into advanced topics and showing how to build production-ready systems.
In this book you will learn how to:
1. Get up and running with TensorFlow, rapidly and painlessly.
2. Use TensorFlow to build models from the ground up.
3. Train and understand popular deep learning models for computer vision and
NLP.
4. Use extensive abstraction libraries to make development easier and faster.
5. Scale up TensorFlow with queuing and multithreading, training on clusters,
and serving output in production.
6. And much more!
This book is written by data scientists with extensive R&D experience in both
industry and academic research. The authors take a hands-on approach, combining
practical and intuitive examples, illustrations, and insights suitable for practitioners
seeking to build production-ready systems, as well as readers looking to learn to
understand and build flexible and powerful models.
5