Skip to content

Commit 7119d6c

Browse files
committed
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into revert_callstack
2 parents cda7842 + aeb2dc2 commit 7119d6c

File tree

846 files changed

+17305
-36046
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

846 files changed

+17305
-36046
lines changed

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ services:
1212
os:
1313
- linux
1414
env:
15-
- JOB=doc
1615
- JOB=check_style
1716
- JOB=build_android
1817
addons:

CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ option(WITH_ANAKIN "Compile with Anakin library" OFF)
6969
option(WITH_GRPC "Use grpc as the default rpc framework" ${WITH_DISTRIBUTE})
7070
option(WITH_BRPC_RDMA "Use brpc rdma as the rpc protocal" OFF)
7171
option(WITH_INFERENCE "Compile fluid inference library" ON)
72+
option(WITH_INFERENCE_API_TEST "Test fluid inference high-level api interface" OFF)
7273
option(WITH_SYSTEM_BLAS "Use system blas library" OFF)
7374
option(PY_VERSION "Compile PaddlePaddle with python3 support" ${PY_VERSION})
7475

@@ -213,9 +214,11 @@ include(configure) # add paddle env configuration
213214
if(WITH_GPU)
214215
include(cuda)
215216
include(tensorrt)
217+
endif()
218+
if(WITH_MKL OR WITH_MKLML)
216219
include(external/anakin)
217220
elseif()
218-
set(WITH_ANAKIN OFF CACHE STRING "Anakin is used in GPU only now." FORCE)
221+
set(WITH_ANAKIN OFF CACHE STRING "Anakin is used in MKL only now." FORCE)
219222
endif()
220223

221224
include(generic) # simplify cmake module

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ RUN curl -s -q https://glide.sh/get | sh
5353
# and its size is only one-third of the official one.
5454
# 2. Manually add ~IPluginFactory() in IPluginFactory class of NvInfer.h, otherwise, it couldn't work in paddle.
5555
# See https://github.com/PaddlePaddle/Paddle/issues/10129 for details.
56-
RUN wget -qO- http://paddlepaddledeps.bj.bcebos.com/TensorRT-4.0.0.3.Ubuntu-16.04.4.x86_64-gnu.cuda-8.0.cudnn7.0.tar.gz | \
56+
RUN wget -qO- http://paddlepaddledeps.cdn.bcebos.com/TensorRT-4.0.0.3.Ubuntu-16.04.4.x86_64-gnu.cuda-8.0.cudnn7.0.tar.gz | \
5757
tar -xz -C /usr/local && \
5858
cp -rf /usr/local/TensorRT/include /usr && \
5959
cp -rf /usr/local/TensorRT/lib /usr

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,17 @@ Our vision is to enable deep learning for everyone via PaddlePaddle.
1919
Please refer to our [release announcement](https://github.com/PaddlePaddle/Paddle/releases) to track the latest feature of PaddlePaddle.
2020

2121

22-
### Latest PaddlePaddle Release: [Fluid 0.14.0](https://github.com/PaddlePaddle/Paddle/tree/v0.14.0)
22+
### Latest PaddlePaddle Release: [Fluid 0.15.0](https://github.com/PaddlePaddle/Paddle/tree/v0.15.0)
2323
### Install Latest Stable Release:
2424
```
2525
# Linux CPU
2626
pip install paddlepaddle
2727
# Linux GPU cuda9cudnn7
2828
pip install paddlepaddle-gpu
2929
# Linux GPU cuda8cudnn7
30-
pip install paddlepaddle-gpu==0.14.0.post87
30+
pip install paddlepaddle-gpu==0.15.0.post87
3131
# Linux GPU cuda8cudnn5
32-
pip install paddlepaddle-gpu==0.14.0.post85
32+
pip install paddlepaddle-gpu==0.15.0.post85
3333
3434
# For installation on other platform, refer to http://paddlepaddle.org/
3535
```
@@ -76,26 +76,26 @@ pip install paddlepaddle-gpu==0.14.0.post85
7676

7777
## Installation
7878

79-
It is recommended to read [this doc](http://paddlepaddle.org/documentation/docs/zh/0.14.0/new_docs/beginners_guide/install/install_doc.html) on our website.
79+
It is recommended to read [this doc](http://paddlepaddle.org/documentation/docs/zh/0.15.0/new_docs/beginners_guide/install/install_doc.html) on our website.
8080

8181
## Documentation
8282

83-
We provide [English](http://paddlepaddle.org/documentation/docs/en/0.14.0/getstarted/index_en.html) and
84-
[Chinese](http://paddlepaddle.org/documentation/docs/zh/0.14.0/new_docs/beginners_guide/index.html) documentation.
83+
We provide [English](http://paddlepaddle.org/documentation/docs/en/0.15.0/getstarted/index_en.html) and
84+
[Chinese](http://paddlepaddle.org/documentation/docs/zh/0.15.0/new_docs/beginners_guide/index.html) documentation.
8585

8686
- [Deep Learning 101](https://github.com/PaddlePaddle/book)
8787

8888
You might want to start from this online interactive book that can run in a Jupyter Notebook.
8989

90-
- [Distributed Training](http://paddlepaddle.org/documentation/docs/zh/0.14.0/new_docs/user_guides/howto/training/cluster_howto.html)
90+
- [Distributed Training](http://paddlepaddle.org/documentation/docs/zh/0.15.0/new_docs/user_guides/howto/training/cluster_howto.html)
9191

9292
You can run distributed training jobs on MPI clusters.
9393

94-
- [Python API](http://paddlepaddle.org/documentation/api/zh/0.14.0/fluid.html)
94+
- [Python API](http://paddlepaddle.org/documentation/api/zh/0.15.0/fluid.html)
9595

9696
Our new API enables much shorter programs.
9797

98-
- [How to Contribute](http://paddlepaddle.org/documentation/docs/zh/0.14.0/new_docs/advanced_usage/development/contribute_to_paddle.html)
98+
- [How to Contribute](http://paddlepaddle.org/documentation/docs/zh/0.15.0/new_docs/advanced_usage/development/contribute_to_paddle.html)
9999

100100
We appreciate your contributions!
101101

benchmark/fluid/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ RUN ln -s /usr/lib/x86_64-linux-gnu/libcudnn.so.7 /usr/lib/libcudnn.so && ln -s
1111
# Add "ENV http_proxy=http://ip:port" if your download is slow, and don't forget to unset it at runtime.
1212
# exmaple: unset http_proxy && unset https_proxy && python fluid_benchmark.py ...
1313

14+
1415
RUN pip install -U pip
1516
RUN pip install -U kubernetes paddlepaddle
1617

@@ -27,5 +28,6 @@ ADD *.whl /
2728
RUN pip install /*.whl && rm -f /*.whl
2829

2930
ENV LD_LIBRARY_PATH=/usr/local/lib
30-
ADD fluid_benchmark.py recordio_converter.py args.py recordio_converter.py run.sh run_fluid_benchmark.sh /workspace/
31+
ADD fluid_benchmark.py recordio_converter.py args.py recordio_converter.py run.sh run_fluid_benchmark.sh imagenet_reader.py /workspace/
3132
ADD models/ /workspace/models/
33+

benchmark/fluid/args.py

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
__all__ = ['parse_args', ]
1818

1919
BENCHMARK_MODELS = [
20-
"machine_translation", "resnet", "vgg", "mnist", "stacked_dynamic_lstm"
20+
"machine_translation", "resnet", "se_resnext", "vgg", "mnist",
21+
"stacked_dynamic_lstm", "resnet_with_preprocess"
2122
]
2223

2324

@@ -67,12 +68,12 @@ def parse_args():
6768
'--cpus',
6869
type=int,
6970
default=1,
70-
help='If cpus > 1, will use ParallelDo to run, else use Executor.')
71+
help='If cpus > 1, will set ParallelExecutor to use multiple threads.')
7172
parser.add_argument(
7273
'--data_set',
7374
type=str,
7475
default='flowers',
75-
choices=['cifar10', 'flowers'],
76+
choices=['cifar10', 'flowers', 'imagenet'],
7677
help='Optional dataset for benchmark.')
7778
parser.add_argument(
7879
'--infer_only', action='store_true', help='If set, run forward only.')
@@ -122,6 +123,11 @@ def parse_args():
122123
type=str,
123124
default="",
124125
help='Directory that contains all the training recordio files.')
126+
parser.add_argument(
127+
'--test_data_path',
128+
type=str,
129+
default="",
130+
help='Directory that contains all the test data (NOT recordio).')
125131
parser.add_argument(
126132
'--use_inference_transpiler',
127133
action='store_true',
@@ -130,5 +136,11 @@ def parse_args():
130136
'--no_random',
131137
action='store_true',
132138
help='If set, keep the random seed and do not shuffle the data.')
139+
parser.add_argument(
140+
'--reduce_strategy',
141+
type=str,
142+
choices=['reduce', 'all_reduce'],
143+
default='all_reduce',
144+
help='Specify the reduce strategy, can be reduce, all_reduce')
133145
args = parser.parse_args()
134146
return args

0 commit comments

Comments
 (0)