Need help with d2l-en?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

8.1K Stars 1.9K Forks Other 3.9K Commits 25 Opened issues


Interactive deep learning book with code, math, and discussions. Available in multi-frameworks. Adopted at 140 universities.

Services available


Need anything else?

Contributors list

Dive into Deep Learning (

Build Status

Book website | STAT 157 Course at UC Berkeley, Spring 2019 | Latest version: v0.15.1

The best way to understand deep learning is learning by doing.

This open-source book represents our attempt to make deep learning approachable, teaching you the concepts, the context, and the code. The entire book is drafted in Jupyter notebooks, seamlessly integrating exposition figures, math, and interactive examples with self-contained code.

Our goal is to offer a resource that could 1. be freely available for everyone; 1. offer sufficient technical depth to provide a starting point on the path to actually becoming an applied machine learning scientist; 1. include runnable code, showing readers how to solve problems in practice; 1. allow for rapid updates, both by us and also by the community at large; 1. be complemented by a forum for interactive discussion of technical details and to answer questions.

Universities that use D2L as a textbook or a reference book

If you find this book useful, please star (★) this repository or cite this book using the following bibtex entry:

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


"In less than a decade, the AI revolution has swept from research labs to broad industries to every corner of our daily life. Dive into Deep Learning is an excellent text on deep learning and deserves attention from anyone who wants to learn why deep learning has ignited the AI revolution: the most powerful technology force of our time."

— Jensen Huang, Founder and CEO, NVIDIA

"This is a timely, fascinating book, providing with not only a comprehensive overview of deep learning principles but also detailed algorithms with hands-on programming code, and moreover, a state-of-the-art introduction to deep learning in computer vision and natural language processing. Dive into this book if you want to dive into deep learning!"

— Jiawei Han, Michael Aiken Chair Professor, University of Illinois at Urbana-Champaign

"This is a highly welcome addition to the machine learning literature, with a focus on hands-on experience implemented via the integration of Jupyter notebooks. Students of deep learning should find this invaluable to become proficient in this field."

— Bernhard Schölkopf, Director, Max Planck Institute for Intelligent Systems

Contribute (learn how)

This open source book has benefited from pedagogical suggestions, typo corrections, and other improvements from community contributors. Your help is valuable for making the book better for everyone.

Dear D2L contributors, please email your GitHub ID and name to d2lbook.en AT gmail DOT com so your name will appear on the acknowledgments. Thanks.

License Summary

This open source book is made available under the Creative Commons Attribution-ShareAlike 4.0 International License. See LICENSE file.

The sample and reference code within this open source book is made available under a modified MIT license. See the LICENSE-SAMPLECODE file.

Chinese version | Discuss and report issues | Code of conduct | Other Information

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.