Skip to content

Commit 06adccf

Browse files
committed
Merge remote-tracking branch 'ups/develop' into nlp
2 parents 4a24c23 + 0c0c5df commit 06adccf

File tree

525 files changed

+9464
-5505
lines changed

Some content is hidden

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

525 files changed

+9464
-5505
lines changed

.clang-format

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ BasedOnStyle: Google
1919
IndentWidth: 2
2020
TabWidth: 2
2121
ContinuationIndentWidth: 4
22-
AccessModifierOffset: -2 # The private/protected/public has no indent in class
22+
AccessModifierOffset: -1 # The private/protected/public has no indent in class
2323
Standard: Cpp11
2424
AllowAllParametersOfDeclarationOnNextLine: true
2525
BinPackParameters: false

.pre-commit-config.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,14 @@ repos:
3434
entry: bash ./tools/codestyle/cpplint_pre_commit.hook
3535
language: system
3636
files: \.(c|cc|cxx|cpp|cu|h|hpp|hxx)$
37+
- repo: local
38+
hooks:
39+
- id: pylint-doc-string
40+
name: pylint
41+
description: Check python docstring style using docstring_checker.
42+
entry: bash ./tools/codestyle/pylint_pre_commit.hook
43+
language: system
44+
files: \.(py)$
3745
- repo: https://github.com/PaddlePaddle/pre-commit-golang
3846
sha: 8337620115c25ff8333f1b1a493bd031049bd7c0
3947
hooks:

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ env:
1818
addons:
1919
ssh_known_hosts: 13.229.163.131
2020
before_install:
21+
# For pylint dockstring checker
22+
- sudo pip install pylint pytest astroid isort
2123
- |
2224
function timeout() { perl -e 'alarm shift; exec @ARGV' "$@"; }
2325
script:

AUTHORS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
| backyes | Yan-Fei Wang |
55
| baiyfbupt | Yi-Fan Bai |
66
| beckett1124 | Bin Qi |
7+
| ChengduoZH | Cheng-Duo Zhao|
78
| chengxiaohua1105 | Xiao-Hua Cheng |
89
| cxwangyi, yiwangbaidu, wangkuiyi | Yi Wang |
910
| cxysteven | Xing-Yi Cheng |

CMakeLists.txt

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,10 @@ option(GLIDE_INSTALL "Download and install go dependencies " ON)
5757
option(USE_NNPACK "Compile PaddlePaddle with NNPACK library" OFF)
5858
option(WITH_DISTRIBUTE "Compile with grpc distributed support" OFF)
5959
option(USE_EIGEN_FOR_BLAS "Use matrix multiplication in Eigen" OFF)
60+
option(EIGEN_USE_THREADS "Compile with multi-threaded Eigen" OFF)
6061
option(WITH_ARM_FP16 "Use half precision support on armv8.2-a cpu" OFF)
62+
option(WITH_FAST_BUNDLE_TEST "Bundle tests that can be run in a single process together to reduce launch overhead" OFF)
63+
option(WITH_CONTRIB "Compile the third-party contributation" OFF)
6164

6265
# CMAKE_BUILD_TYPE
6366
if(NOT CMAKE_BUILD_TYPE)
@@ -202,7 +205,7 @@ endif(USE_NNPACK)
202205

203206
add_subdirectory(proto)
204207

205-
if(NOT MOBILE_INFERENCE)
208+
if(NOT MOBILE_INFERENCE AND NOT WITH_FLUID_ONLY)
206209
# "add_subdirectory(go)" should be placed after the following loine,
207210
# because it depends on paddle/optimizer.
208211
add_subdirectory(paddle/optimizer)
@@ -230,3 +233,7 @@ if(WITH_DOC)
230233
find_python_module(recommonmark REQUIRED)
231234
add_subdirectory(doc)
232235
endif()
236+
237+
if (WITH_CONTRIB)
238+
add_subdirectory(paddle/contrib)
239+
endif()

CONTRIBUTING.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ PaddlePaddle uses this [Git branching model](http://nvie.com/posts/a-successful-
5858
create mode 100644 233
5959
```
6060

61+
NOTE: The `yapf` installed by `pip install pre-commit` and `conda install -c conda-forge pre-commit` is slightly different. Paddle developers use `pip install pre-commit`.
62+
6163
1. Build and test
6264

6365
Users can build PaddlePaddle natively on Linux and Mac OS X. But to unify the building environment and to make it easy for debugging, the recommended way is [using Docker](https://github.com/PaddlePaddle/Paddle/blob/develop/doc/howto/dev/build_en.md).

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ RUN apt-get update && \
2929
wget unzip unrar tar xz-utils bzip2 gzip coreutils ntp \
3030
curl sed grep graphviz libjpeg-dev zlib1g-dev \
3131
python-matplotlib gcc-4.8 g++-4.8 \
32-
automake locales clang-format swig doxygen cmake \
32+
automake locales clang-format swig cmake \
3333
liblapack-dev liblapacke-dev \
3434
clang-3.8 llvm-3.8 libclang-3.8-dev \
3535
net-tools libtool ccache && \
@@ -79,6 +79,9 @@ RUN pip install pre-commit 'ipython==5.3.0' && \
7979
pip install 'ipykernel==4.6.0' 'jupyter==1.0.0' && \
8080
pip install opencv-python
8181

82+
#For docstring checker
83+
RUN pip install pylint pytest astroid isort
84+
8285
COPY ./python/requirements.txt /root/
8386
RUN pip install -r /root/requirements.txt
8487

@@ -101,6 +104,3 @@ RUN echo 'root:root' | chpasswd
101104
RUN sed -ri 's/^PermitRootLogin\s+.*/PermitRootLogin yes/' /etc/ssh/sshd_config
102105
RUN sed -ri 's/UsePAM yes/#UsePAM yes/g' /etc/ssh/sshd_config
103106
EXPOSE 22
104-
105-
# development image default do build work
106-
CMD ["bash", "/paddle/paddle/scripts/docker/build.sh"]

Dockerfile.android

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,3 @@ RUN mkdir -p ${ANDROID_TOOLCHAINS_DIR} && \
4040
unzip -q android-ndk-r14b-linux-x86_64.zip && \
4141
mv android-ndk-r14b ${ANDROID_NDK_HOME} && \
4242
rm -rf /opt/android-ndk-tmp
43-
44-
CMD ["bash", "/paddle/paddle/scripts/docker/build_android.sh"]

benchmark/cluster/README.md

Lines changed: 0 additions & 196 deletions
This file was deleted.

benchmark/cluster/vgg16/Dockerfile

Lines changed: 0 additions & 35 deletions
This file was deleted.

0 commit comments

Comments
 (0)