Skip to content
/ d2l-zh Public
forked from d2l-ai/d2l-zh

《动手学深度学习》:面向中文读者、能运行、可讨论。英文版即伯克利“深度学习导论”教材。

License

Notifications You must be signed in to change notification settings

jzw0025/d2l-zh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Oct 9, 2017
b088110 · Oct 9, 2017
Sep 15, 2017
Oct 4, 2017
Oct 9, 2017
Sep 21, 2017
Sep 29, 2017
Sep 22, 2017
Oct 6, 2017
Sep 22, 2017
Oct 9, 2017
Sep 15, 2017
Oct 9, 2017
Aug 31, 2017
Sep 8, 2017
Sep 14, 2017
Aug 23, 2017
Aug 25, 2017
Sep 17, 2017
Sep 18, 2017
Oct 4, 2017
Oct 9, 2017
Oct 9, 2017
Oct 3, 2017

Repository files navigation

通过MXNet/Gluon来动手学习深度学习

主页在 https://zh.gluon.ai/

请使用 https://discuss.gluon.ai 讨论或报告问题

如何贡献

所有notebook是用markdown格式存储,这样方便merge改动。jupyter可以通过notedown来直接使用markdown,参考这里安装

build服务器在 http://gluon-ci.mxnet.io 。这台服务器有一块Nvidia M60。

所有markdown文件需要在提交前清除output,它们会在服务器上重新执行生成结果。所以需要保证每个notebook执行不要太久,目前限制是4min。

在本地可以如下build html(需要GPU支持)

conda env update -f build/build.yml
source activate gluon_zh_docs
make html

生成的html会在_build/html

如果没有改动notebook里面源代码,所以不想执行notebook,可以使用

make html EVAL=0

但这样生成的html将不含有输出结果。

编译PDF版本

编译pdf版本需要xelatex,和思源字体。在Ubuntu可以这样安装

sudo apt-get install texlive-full
wget https://github.com/adobe-fonts/source-han-sans/raw/release/OTF/SourceHanSansHWSC.zip
wget https://github.com/adobe-fonts/source-han-serif/raw/release/OTF/SourceHanSerifSC_EL-M.zip
unzip SourceHanSansHWSC.zip
unzip SourceHanSerifSC_EL-M.zip
sudo mv SourceHanSansHWSC SourceHanSerifSC_EL-M /usr/share/fonts/opentype/
sudo fc-cache -f -v

这时候可以通过 fc-list :lang=zh 来查看安装的中文字体。

然后可以编译了

make latex
cd _build/latex
xelatex -interaction nonstopmode gluon_tutorials_zh.tex

About

《动手学深度学习》:面向中文读者、能运行、可讨论。英文版即伯克利“深度学习导论”教材。

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 64.6%
  • Makefile 15.8%
  • HTML 13.5%
  • JavaScript 2.3%
  • CSS 2.2%
  • Dockerfile 1.6%