未验证 提交 85569fdd 编写于 作者: C Chen Weihang 提交者: GitHub

Merge pull request #590 from chenwhql/maindir_readme_fix

Doc: update training with GPU parameters setting in maindir's README
...@@ -51,12 +51,12 @@ nvidia-docker run -d -p 8888:8888 docker.paddlepaddlehub.com/book:latest-gpu ...@@ -51,12 +51,12 @@ nvidia-docker run -d -p 8888:8888 docker.paddlepaddlehub.com/book:latest-gpu
还需要将以下代码 还需要将以下代码
```python ```python
paddle.init(use_gpu=False, trainer_count=1) use_cuda = False
``` ```
改成: 改成:
```python ```python
paddle.init(use_gpu=True, trainer_count=1) use_cuda = True
``` ```
......
...@@ -55,12 +55,12 @@ nvidia-docker run -d -p 8888:8888 docker.paddlepaddlehub.com/book:latest-gpu ...@@ -55,12 +55,12 @@ nvidia-docker run -d -p 8888:8888 docker.paddlepaddlehub.com/book:latest-gpu
Change the code in the chapter that you are reading from Change the code in the chapter that you are reading from
```python ```python
paddle.init(use_gpu=False, trainer_count=1) use_cuda = False
``` ```
to: to:
```python ```python
paddle.init(use_gpu=True, trainer_count=1) use_cuda = True
``` ```
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册