Dive into Deep Learning

Dive into Deep Learning

An interactive deep learning book with code, math, and discussions

Based on the NDArray interface (the improved version with the NumPy interface is here)

We recommend the improved version at d2l.ai


  • [Stay tuned] To keep track of the latest updates, please follow D2L's open-source project.
  • [Chinese version] The Chinese version is the best seller of new books in "Computers and Internet" at the largest Chinese online bookstore.
  • [Teaching] Slides, Jupyter notebooks, assignments, and videos of the Berkeley course can be found at the syllabus page.

Aston Zhang

Amazon Senior Scientist

Zack C. Lipton

Amazon Scientist
CMU Assistant Professor

Mu Li

Amazon Principal Scientist

Alex J. Smola

Amazon VP/Distinguished Scientist
TU Berlin Ph.D.

We thank all the community contributors
for making this open source book better for everyone.

Contribute to the book.

Each section is an executable Jupyter notebook

You can modify the code and tune hyperparameters to get instant feedback to accumulate practical experiences in deep learning.

Mathematics + Figures + Code

We offer an interactive learning experience with mathematics, figures, code, text, and discussions, where concepts and techniques are illustrated and implemented with experiments on real data sets.

Active community support

You can discuss and learn with thousands of peers in the community through the link provided in each section.

D2L as a textbook or a reference book

Carnegie Mellon University (USA)
Fudan University (China)
Georgia Institute of Technology (USA)
Indian Institute of Technology Bombay (India)
Indian Institute of Technology Kanpur (India)
Indian Institute of Technology Ropar (India)
Kyungpook National University (Korea)
Massachusetts Institute of Technology (USA)
Northeastern University (USA)
Peking University (China)
Shanghai Jiao Tong University (China)
Shanghai University of Finance and Economics (China)
Texas A&M University (USA)
Universidade Federal de Minas Gerais (Brazil)
University of California, Berkeley (USA)
University of California, Los Angeles (USA)
University of California, Santa Barbara (USA)
University of Illinois at Urbana-Champaign (USA)
University of Maryland (USA)
University of New Hampshire (USA)
University of North Carolina at Chapel Hill (USA)
University of Science and Technology of China (China)
University of Technology Sydney (Australia)
University of Washington (USA)
Universitat Politècnica de Catalunya (Spain)
Zhejiang University (China)

BibTeX entry for citing the book

          title={Dive into Deep Learning},
          author={Aston Zhang and Zachary C. Lipton and Mu Li and Alexander J. Smola},

Table of contents