Skip to content

Commit fbcecdd

Browse files
committed
Merge branch 'public-dev' into develop
2 parents dee6d16 + 5023530 commit fbcecdd

File tree

301 files changed

+8440
-3368
lines changed

Some content is hidden

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

301 files changed

+8440
-3368
lines changed

CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,9 +213,11 @@ include(configure) # add paddle env configuration
213213
if(WITH_GPU)
214214
include(cuda)
215215
include(tensorrt)
216+
endif()
217+
if(WITH_MKL OR WITH_MKLML)
216218
include(external/anakin)
217219
elseif()
218-
set(WITH_ANAKIN OFF CACHE STRING "Anakin is used in GPU only now." FORCE)
220+
set(WITH_ANAKIN OFF CACHE STRING "Anakin is used in MKL only now." FORCE)
219221
endif()
220222

221223
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: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -76,33 +76,26 @@ pip install paddlepaddle-gpu==0.14.0.post85
7676

7777
## Installation
7878

79-
It is recommended to check out the
80-
[Docker installation guide](http://www.paddlepaddle.org/docs/develop/documentation/fluid/en/build_and_install/docker_install_en.html)
81-
before looking into the
82-
[build from source guide](http://www.paddlepaddle.org/docs/develop/documentation/fluid/en/build_and_install/build_from_source_en.html).
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.
8380

8481
## Documentation
8582

86-
We provide [English](http://www.paddlepaddle.org/docs/develop/documentation/en/getstarted/index_en.html) and
87-
[Chinese](http://www.paddlepaddle.org/docs/develop/documentation/zh/getstarted/index_cn.html) documentation.
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.
8885

89-
- [Deep Learning 101](http://www.paddlepaddle.org/docs/develop/book/01.fit_a_line/index.html)
86+
- [Deep Learning 101](https://github.com/PaddlePaddle/book)
9087

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

93-
- [Distributed Training](http://www.paddlepaddle.org/docs/develop/documentation/en/howto/cluster/index_en.html)
90+
- [Distributed Training](http://paddlepaddle.org/documentation/docs/zh/0.14.0/new_docs/user_guides/howto/training/cluster_howto.html)
9491

9592
You can run distributed training jobs on MPI clusters.
9693

97-
- [Distributed Training on Kubernetes](http://www.paddlepaddle.org/docs/develop/documentation/en/howto/cluster/multi_cluster/k8s_en.html)
98-
99-
You can also run distributed training jobs on Kubernetes clusters.
100-
101-
- [Python API](http://www.paddlepaddle.org/docs/develop/api/en/overview.html)
94+
- [Python API](http://paddlepaddle.org/documentation/api/zh/0.14.0/fluid.html)
10295

10396
Our new API enables much shorter programs.
10497

105-
- [How to Contribute](http://www.paddlepaddle.org/docs/develop/documentation/fluid/en/dev/contribute_to_paddle_en.html)
98+
- [How to Contribute](http://paddlepaddle.org/documentation/docs/zh/0.14.0/new_docs/advanced_usage/development/contribute_to_paddle.html)
10699

107100
We appreciate your contributions!
108101

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: 13 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,9 @@ 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+
'--use_lars',
141+
action='store_true',
142+
help='If set, use lars for optimizers, ONLY support resnet module.')
133143
args = parser.parse_args()
134144
return args

0 commit comments

Comments
 (0)