Skip to content

Commit bcafb32

Browse files
committed
fix error
1 parent 2c589f7 commit bcafb32

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

doc/fluid/getstarted/quickstart_cn.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ PaddlePaddle支持使用pip快速安装,目前支持CentOS 6以上, Ubuntu 14.
1111
1212
pip install paddlepaddle
1313
14-
如果需要安装支持GPU的版本(cuda7.5_cudnn5_avx_openblas),需要执行:
14+
如果需要安装支持GPU的版本(cuda8.0_cudnn5_avx_openblas),需要执行:
1515

1616
.. code-block:: bash
1717
@@ -28,18 +28,18 @@ PaddlePaddle支持使用pip快速安装,目前支持CentOS 6以上, Ubuntu 14.
2828
2929
import paddle.dataset.uci_housing as uci_housing
3030
import paddle.fluid as fluid
31-
31+
3232
with fluid.scope_guard(fluid.core.Scope()):
3333
# initialize executor with cpu
3434
exe = fluid.Executor(place=fluid.CPUPlace())
35-
# load inference model
35+
# load inference model
3636
[inference_program, feed_target_names,fetch_targets] = \
3737
fluid.io.load_inference_model(uci_housing.fluid_model(), exe)
3838
# run inference
39-
result = exe.run(inference_program,
40-
feed={feed_target_names[0]: uci_housing.predict_reader()},
39+
result = exe.run(inference_program,
40+
feed={feed_target_names[0]: uci_housing.predict_reader()},
4141
fetch_list=fetch_targets)
42-
# print predicted price is $12,273.97
42+
# print predicted price is $12,273.97
4343
print 'Predicted price: ${:,.2f}'.format(result[0][0][0] * 1000)
4444
4545
执行 :code:`python housing.py` 瞧! 它应该打印出预测住房数据的清单。

doc/fluid/getstarted/quickstart_en.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Simply run the following command to install, the version is cpu_avx_openblas:
1212
1313
pip install paddlepaddle
1414
15-
If you need to install GPU version (cuda7.5_cudnn5_avx_openblas), run:
15+
If you need to install GPU version (cuda8.0_cudnn5_avx_openblas), run:
1616

1717
.. code-block:: bash
1818
@@ -31,18 +31,18 @@ code:
3131
3232
import paddle.dataset.uci_housing as uci_housing
3333
import paddle.fluid as fluid
34-
34+
3535
with fluid.scope_guard(fluid.core.Scope()):
3636
# initialize executor with cpu
3737
exe = fluid.Executor(place=fluid.CPUPlace())
38-
# load inference model
38+
# load inference model
3939
[inference_program, feed_target_names,fetch_targets] = \
4040
fluid.io.load_inference_model(uci_housing.fluid_model(), exe)
4141
# run inference
42-
result = exe.run(inference_program,
43-
feed={feed_target_names[0]: uci_housing.predict_reader()},
42+
result = exe.run(inference_program,
43+
feed={feed_target_names[0]: uci_housing.predict_reader()},
4444
fetch_list=fetch_targets)
45-
# print predicted price is $12,273.97
45+
# print predicted price is $12,273.97
4646
print 'Predicted price: ${:,.2f}'.format(result[0][0][0] * 1000)
4747
4848
Run :code:`python housing.py` and voila! It should print out a list of predictions

0 commit comments

Comments
 (0)