『飞桨』深度学习框架入门教程(飞桨开源程序框架)

网友投稿 1017 2022-10-12

『飞桨』深度学习框架入门教程(飞桨开源程序框架)

『飞桨』深度学习框架入门教程(飞桨开源程序框架)

Deep Learning with PaddlePaddle

Fit a LineRecognize DigitsImage ClassificationWord to VectorRecommender SystemUnderstand SentimentLabel Semantic RolesMachine Translation

Running the Book

This book you are reading is interactive -- each chapter can run as a Jupyter Notebook.

We packed this book, Jupyter, PaddlePaddle, and all dependencies into a docker image. So you don't need to install anything except Docker. If you are using Windows, please follow this installation guide. If you are running Mac, please follow this. For various Linux distros, please refer to https://docker.com. If you are using Windows or Mac, you might want to give Docker more memory and CPUs/cores.

Just type

docker run -d -p 8888:8888 paddlepaddle/book

This command will download the pre-built Docker image from DockerHub.com and run it in a container. Please direct your Web browser to http://localhost:8888 to read the book.

If you are living in somewhere slow to access DockerHub.com, you might try our mirror server hub.baidubce.com:

docker run -d -p 8888:8888 hub.baidubce.com/paddlepaddle/book

Training with GPU

By default we are using CPU for training, if you want to train with GPU, the steps are a little different.

To make sure GPU can be successfully used from inside container, please install nvidia-docker. Then run:

nvidia-docker run -d -p 8888:8888 paddlepaddle/book:latest-gpu

Or you can use the image registry mirror in China:

nvidia-docker run -d -p 8888:8888 hub.baidubce.com/paddlepaddle/book:latest-gpu

Change the code in the chapter that you are reading from

use_cuda = False

to:

use_cuda = True

Contribute

Your contribution is welcome! Please feel free to file Pull Requests to add your chapter as a directory under /pending. Once it is going stable, the community would like to move it to /.

To write, run, and debug your chapters, you will need Python 2.x, Go >1.5. You can build the Docker image using this script. This tutorial is contributed by PaddlePaddle, and licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:Analysis Tools(分析工具)
下一篇:数据管理工具-栅格
相关文章

 发表评论

暂时没有评论,来抢沙发吧~