TensorFlow in Action cover

TensorFlow in Action

Rating 3.6
Word count
361 words
Chapters
11
ISBN
9787121309120

Tags

Summary

This book is written based on the TensorFlow 1.0 API, aimed at developers and researchers who want to quickly turn deep learning ideas into runnable models. It begins with the basic principles of TensorFlow such as computation graphs, sessions and variables, and compares TensorFlow with other mainstream deep learning frameworks to help readers understand the design philosophy and applicable boundaries of this framework. In the practical part, the author uses complete code to implement various types of deep neural networks, including AutoEncoder, Multilayer Perceptron (MLP), convolutional neural networks (AlexNet, VGGNet, Inception Net, ResNet), Word2Vec word vectors, as well as recurrent neural networks (LSTM, bidirectional RNN) and the policy network and value network in deep reinforcement learning. It also specifically explains TensorBoard visualization, single-machine multi-GPU parallelism, distributed parallel training, and the use of other TensorFlow components such as TF.Learn. The book emphasizes runnable code and cases close to industrial scenarios; after reading, readers can independently build and train common deep learning models and understand the engineering practice points in multi-GPU and distributed environments. Note that the examples are based on the TensorFlow 1.x API and differ considerably from later 2.x versions in sessions, graph mode and other aspects, so appropriate adaptation is needed when working through them.

Editor's review

这是一本诞生于TensorFlow 1.0发布节点上的中文实战书,作者黄文坚、唐源长期活跃在算法与开源社区,写作视角贴近一线工程,而不是学院式推导。它最有价值的地方在于“框架对比+代码完整实现”的组合:既讲清Compute Graph、Session这些容易被跳过的基础概念,又把AlexNet、VGGNet、Inception Net、ResNet、Word2Vec、LSTM、策略网络与价值网络等经典模型逐一写成可运行的TensorFlow代码,让读者能顺着代码把知识串起来。对2017年前后的读者来说,多GPU与分布式并行、TensorBoard可视化、TF.Learn组件这几章尤为难得,弥补了很多入门书只讲单机小demo的不足。当然,本书基于1.x API,图模式与会话的写法已与今天主流的2.x/ Keras风格不同,个别代码需要改环境才能跑通;但神经网络结构与工程思路本身并未过时,把它当作理解底层机制、对照新旧API的学习材料仍然合适。

Who it's for

A good fit for

  • 已掌握Python与基础机器学习知识的开发者,希望系统上手TensorFlow框架
  • 需要把CNN、RNN、Word2Vec、强化学习等模型写成可运行代码的工程实践者
  • 想了解多GPU并行、分布式训练与TensorBoard可视化等工程环节的技术人员
  • 希望理解TensorFlow底层图与会话机制、以便迁移到新版API的学习者

Not a good fit for

  • 完全没有Python编程与神经网络基础、希望零门槛入门的读者
  • 只想学习TensorFlow 2.x与Keras高级API、不打算适配旧代码的读者
  • 偏重深度学习数学推导与理论证明、对工程代码兴趣不大的研究者

Reading tips

  1. 先按附录搭好GPU环境,逐章跑通代码,遇到1.x与2.x API差异时优先查阅官方迁移文档
  2. 把第2章框架对比与第5、6章经典CNN结构对照阅读,理解各网络设计的取舍
  3. 第9章并行内容建议在至少一张GPU的机器上复现,单机多卡与分布式部分可先跑通单卡再扩展
  4. 读完后用新版API重写其中一两个模型,既验证理解,也完成代码迁移练习

About the publisher

Publishing House of Electronics Industry China · Founded in 1982

The Publishing House of Electronics Industry is a comprehensive publisher distinguished by its focus on electronic information and related fields. Judging from the more than 3,000 titles in its catalogue, its publishing covers programming and design, artificial intelligence, computer science, finance and economics, photography, and social sciences, attending both to cutting-edge technology and to general readers. Representative titles include Factor Investing: Methods and Practice, x86 Assembly Language: From Real Mode to Protected Mode, The RISC-V Reader, Artificial Intelligence: Speech Recognition, Understanding and Practice, Phased Array Radar Technology, Radar Target Characteristics, and 100 Go Mistakes and How to Avoid Them, most of which centre on technical methods and engineering practice. Its authors include Shi Chuan, Li Zhong, Wang Xiaobo, David Patterson, Andrew Waterman, and Yu Zihao, among others from China and abroad. Owing to limited public information, no further publishing features are elaborated here.

Contents

  1. Chapter 1 Introduction to TensorFlow Basics
  2. Chapter 2 Comparison of TensorFlow with Other Deep Learning Frameworks
  3. Chapter 3 TensorFlow Implementation of Softmax Regression for Handwritten Digit Recognition
  4. Chapter 4 TensorFlow Implementation of Autoencoders and Multilayer Perceptrons
  5. Chapter 5 TensorFlow Implementation of Convolutional Neural Networks
  6. Chapter 6 TensorFlow Implementation of Classic Convolutional Neural Networks
  7. Chapter 7 TensorFlow Implementation of Word2Vec
  8. Chapter 8 TensorFlow Implementation of Recurrent Neural Networks and Reinforcement Learning in Deep Learning
  9. Chapter 9 TensorBoard, Multi-GPU Parallelism and Distributed Parallelism
  10. Chapter 10 TF.Learn and Other TensorFlow Auxiliary Components
  11. Appendix Installing TensorFlow and Configuring the GPU Environment

FAQ

这本书适合零基础读者吗?
不太适合零基础。书中省略了大量数学推导,但默认读者具备Python编程与神经网络基本概念,至少理解前向传播、反向传播、损失函数等术语,否则读代码部分会比较吃力。
书里的代码现在还能直接运行吗?
书中示例基于TensorFlow 1.0 API,使用计算图与会话等写法,在2.x版本中默认已不可直接运行。需要安装兼容模式(tf.compat.v1)或手动改写为Keras风格,模型结构本身仍可参考。
这本书和《TensorFlow:实战Google深度学习框架》是同一本吗?
不是。本书为黄文坚、唐源合著,电子工业出版社2017年出版;后者为郑泽宇、顾思宇合著。两本书都讲TensorFlow 1.x入门,章节安排与侧重不同,选购时注意区分作者。

Comments

Find this book

This site is an index: you start “Search all sources” in your browser, and the entries it lists all point to third-party sites; please judge their availability yourself.

About the author

黄文坚 Author

Huang Wenjian is an author about whom limited public information is available; what can be confirmed is mainly his connection to computer technology writing. Only one work by him is held in the library, TensorFlow in Action (TensorFlow Shizhan), which is commonly classified under programming and design. Judging from the title and category, the book addresses the practical use of the TensorFlow deep learning framework and belongs to the field of technical introductions and engineering practice rather than theoretical monographs or academic research. It can therefore be inferred that the author focuses on explaining framework usage, model construction, and code implementation clearly, in a direct and pragmatic style aimed at readers who wish to learn by doing. For beginners and engineers, such a book is valuable for lowering the barrier to entry and offering workable, referenceable procedures. Because details such as dates of birth and death, nationality, education, and professional experience remain unconfirmed, this profile does not cover his personal life and only describes objectively the subject matter and orientation of the available work.

More by the same author

Top rated in the same category