Skip to content

Commit f8bc413

Browse files
committed
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into develop
2 parents 253da41 + aa2bcf5 commit f8bc413

40 files changed

+338
-167
lines changed

cmake/FindSphinx.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ function( Sphinx_add_target target_name builder conf cache source destination )
7272
${source}
7373
${destination}
7474
COMMENT "Generating sphinx documentation: ${builder}"
75-
COMMAND ln -sf ${destination}/index_*.html ${destination}/index.html
75+
COMMAND cd ${destination} && ln -s ./index_*.html index.html
7676
)
7777

7878
set_property(

demo/image_classification/api_v2_train.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def event_handler(event):
6666
sys.stdout.flush()
6767
if isinstance(event, paddle.event.EndPass):
6868
result = trainer.test(
69-
reader=paddle.reader.batched(
69+
reader=paddle.batch(
7070
paddle.dataset.cifar.test10(), batch_size=128),
7171
reader_dict={'image': 0,
7272
'label': 1})
@@ -77,7 +77,7 @@ def event_handler(event):
7777
parameters=parameters,
7878
update_equation=momentum_optimizer)
7979
trainer.train(
80-
reader=paddle.reader.batched(
80+
reader=paddle.batch(
8181
paddle.reader.shuffle(
8282
paddle.dataset.cifar.train10(), buf_size=50000),
8383
batch_size=128),

demo/mnist/api_train_v2.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def event_handler(event):
9898
result.metrics['classification_error_evaluator']))
9999

100100
trainer.train(
101-
reader=paddle.reader.batched(
101+
reader=paddle.batch(
102102
paddle.reader.shuffle(
103103
paddle.dataset.mnist.train(), buf_size=8192),
104104
batch_size=128),
@@ -115,7 +115,7 @@ def event_handler(event):
115115
probs = paddle.infer(
116116
output=predict,
117117
parameters=parameters,
118-
reader=paddle.reader.batched(
118+
reader=paddle.batch(
119119
paddle.reader.firstn(
120120
paddle.reader.map_readers(lambda item: (item[0], ),
121121
paddle.dataset.mnist.test()),

doc/api/index_cn.rst

Lines changed: 2 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,2 @@
1-
API中文手册
2-
============
3-
4-
DataProvider API
5-
----------------
6-
7-
.. toctree::
8-
:maxdepth: 1
9-
10-
data_provider/dataprovider_cn.rst
11-
data_provider/pydataprovider2_cn.rst
12-
13-
.. _api_trainer_config:
14-
15-
Model Config API
16-
----------------
17-
18-
.. toctree::
19-
:maxdepth: 1
20-
21-
trainer_config_helpers/optimizers.rst
22-
trainer_config_helpers/data_sources.rst
23-
trainer_config_helpers/layers.rst
24-
trainer_config_helpers/activations.rst
25-
trainer_config_helpers/poolings.rst
26-
trainer_config_helpers/networks.rst
27-
trainer_config_helpers/evaluators.rst
28-
trainer_config_helpers/attrs.rst
29-
30-
31-
Applications API
32-
----------------
33-
34-
.. toctree::
35-
:maxdepth: 1
36-
37-
predict/swig_py_paddle_cn.rst
1+
API
2+
===

doc/api/index_en.rst

Lines changed: 1 addition & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,10 @@
11
API
22
===
33

4-
DataProvider API
5-
----------------
6-
7-
.. toctree::
8-
:maxdepth: 1
9-
10-
data_provider/dataprovider_en.rst
11-
data_provider/pydataprovider2_en.rst
12-
13-
.. _api_trainer_config:
14-
154
Model Config API
165
----------------
176

187
.. toctree::
198
:maxdepth: 1
209

21-
trainer_config_helpers/optimizers.rst
22-
trainer_config_helpers/data_sources.rst
23-
trainer_config_helpers/layers.rst
24-
trainer_config_helpers/activations.rst
25-
trainer_config_helpers/poolings.rst
26-
trainer_config_helpers/networks.rst
27-
trainer_config_helpers/evaluators.rst
28-
trainer_config_helpers/attrs.rst
29-
30-
31-
Applications API
32-
----------------
33-
34-
.. toctree::
35-
:maxdepth: 1
36-
37-
predict/swig_py_paddle_en.rst
10+
v2/model_configs.rst
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)