Skip to content

Commit 02c8a5a

Browse files
committed
Update doc
2 parents 2a21d8b + 0d39b11 commit 02c8a5a

File tree

373 files changed

+17781
-5621
lines changed

Some content is hidden

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

373 files changed

+17781
-5621
lines changed

.dockerignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.gitignore

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ build/
88
.cproject
99
.pydevproject
1010
Makefile
11+
.test_env/

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "warp-ctc"]
2+
path = warp-ctc
3+
url = https://github.com/baidu-research/warp-ctc.git

.pre-commit-config.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
sha: c25201a00e6b0514370501050cf2a8538ac12270
33
hooks:
44
- id: remove-crlf
5+
files: (?!.*warp-ctc)^.*$
56
- repo: https://github.com/reyoung/mirrors-yapf.git
67
sha: v0.13.2
78
hooks:
@@ -13,6 +14,7 @@
1314
- id: check-merge-conflict
1415
- id: check-symlinks
1516
- id: detect-private-key
17+
files: (?!.*warp-ctc)^.*$
1618
- id: end-of-file-fixer
1719
- repo: https://github.com/PaddlePaddle/clang-format-pre-commit-hook.git
1820
sha: 28c0ea8a67a3e2dbbf4822ef44e85b63a0080a29

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,15 @@ addons:
4242
before_install:
4343
- |
4444
if [ ${JOB} == "BUILD_AND_TEST" ]; then
45-
if ! git diff --name-only $TRAVIS_COMMIT_RANGE | grep -qvE '(\.md$)'
45+
if ! git diff --name-only $TRAVIS_COMMIT_RANGE | grep -qvE '(\.md$)|(\.rst$)|(\.jpg$)|(\.png$)'
4646
then
4747
echo "Only markdown docs were updated, stopping build process."
4848
exit
4949
fi
5050
fi
5151
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo paddle/scripts/travis/before_install.linux.sh; fi
5252
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then paddle/scripts/travis/before_install.osx.sh; fi
53-
- pip install wheel protobuf sphinx breathe recommonmark virtualenv numpy
53+
- pip install wheel protobuf sphinx breathe recommonmark virtualenv numpy sphinx_rtd_theme
5454
script:
5555
- paddle/scripts/travis/main.sh
5656
notifications:

CMakeLists.txt

Lines changed: 27 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,24 @@
11
cmake_minimum_required(VERSION 2.8)
22

33
project(paddle CXX C)
4-
set(PADDLE_MAJOR_VERSION 0)
5-
set(PADDLE_MINOR_VERSION 9)
6-
set(PADDLE_PATCH_VERSION 0a0)
7-
set(PADDLE_VERSION ${PADDLE_MAJOR_VERSION}.${PADDLE_MINOR_VERSION}.${PADDLE_PATCH_VERSION})
84

95
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake")
106
set(PROJ_ROOT ${CMAKE_SOURCE_DIR})
117
include(package)
128
find_package(SWIG 2.0)
139
find_package(CUDA QUIET)
1410
find_package(Protobuf REQUIRED)
11+
12+
# Check protobuf library version.
13+
execute_process(COMMAND ${PROTOBUF_PROTOC_EXECUTABLE} --version
14+
OUTPUT_VARIABLE PROTOBUF_VERSION)
15+
string(REPLACE "libprotoc " "" PROTOBUF_VERSION ${PROTOBUF_VERSION})
16+
17+
set(PROTOBUF_3 OFF)
18+
if (${PROTOBUF_VERSION} VERSION_GREATER "3.0.0" OR ${PROTOBUF_VERSION} VERSION_EQUAL "3.0.0")
19+
set(PROTOBUF_3 ON)
20+
endif()
21+
1522
find_package(PythonLibs 2.7 REQUIRED)
1623
find_package(PythonInterp 2.7 REQUIRED)
1724
find_package(ZLIB REQUIRED)
@@ -36,6 +43,7 @@ option(WITH_RDMA "Compile PaddlePaddle with rdma support" OFF)
3643
option(WITH_GLOG "Compile PaddlePaddle use glog, otherwise use a log implement internally" ${LIBGLOG_FOUND})
3744
option(WITH_GFLAGS "Compile PaddlePaddle use gflags, otherwise use a flag implement internally" ${GFLAGS_FOUND})
3845
option(WITH_TIMER "Compile PaddlePaddle use timer" OFF)
46+
option(WITH_PROFILER "Compile PaddlePaddle use gpu profiler" OFF)
3947
option(WITH_TESTING "Compile and run unittest for PaddlePaddle" ${GTEST_FOUND})
4048
option(WITH_DOC "Compile PaddlePaddle with documentation" OFF)
4149
option(WITH_SWIG_PY "Compile PaddlePaddle with py PaddlePaddle prediction api" ${SWIG_FOUND})
@@ -44,7 +52,7 @@ option(ON_COVERALLS "Generating code coverage data on coveralls or not." OFF)
4452
option(COVERALLS_UPLOAD "Uploading the generated coveralls json." ON)
4553

4654
if(NOT CMAKE_BUILD_TYPE)
47-
set(CMAKE_BUILD_TYPE "RelWithDebInfo" CACHE STRING
55+
set(CMAKE_BUILD_TYPE "RelWithDebInfo" CACHE STRING
4856
"Choose the type of build, options are: Debug Release RelWithDebInfo MinSizeRel"
4957
FORCE)
5058
endif()
@@ -63,36 +71,16 @@ include(check_packages)
6371
include(swig)
6472
include(coveralls)
6573

66-
# add PaddlePaddle version
67-
if(DEFINED ENV{PADDLE_VERSION})
68-
add_definitions(-DPADDLE_VERSION=\"$ENV{PADDLE_VERSION}\")
69-
else()
70-
if(EXISTS ${PROJ_ROOT}/.svn/)
71-
find_package(Subversion REQUIRED)
72-
if(SUBVERSION_FOUND)
73-
Subversion_WC_INFO(${PROJ_ROOT} Project)
74-
add_definitions(-DPADDLE_VERSION=${Project_WC_REVISION})
75-
endif()
76-
elseif(EXISTS ${PROJ_ROOT}/.git/)
77-
find_package(Git REQUIRED)
78-
execute_process(
79-
COMMAND ${GIT_EXECUTABLE} log -1 --format=%H
80-
WORKING_DIRECTORY ${PROJ_ROOT}
81-
OUTPUT_VARIABLE GIT_SHA1
82-
RESULT_VARIABLE GIT_RESULT
83-
ERROR_QUIET OUTPUT_STRIP_TRAILING_WHITESPACE)
84-
if(NOT ${GIT_RESULT})
85-
add_definitions(-DPADDLE_VERSION=\"${GIT_SHA1}\")
86-
else()
87-
message(WARNING "Cannot add paddle version from git tag")
88-
endif()
89-
endif()
90-
endif()
91-
74+
# Set PaddlePaddle version to Git tag name or Git commit ID.
75+
find_package(Git REQUIRED)
76+
# version.cmake will get the current PADDLE_VERSION
77+
include(version)
78+
add_definitions(-DPADDLE_VERSION=\"${PADDLE_VERSION}\")
9279

9380
if(NOT WITH_GPU)
9481
add_definitions(-DPADDLE_ONLY_CPU)
9582
add_definitions(-DHPPL_STUB_FUNC)
83+
9684
list(APPEND CMAKE_CXX_SOURCE_FILE_EXTENSIONS cu)
9785
else()
9886
if(${CUDA_VERSION_MAJOR} GREATER 6)
@@ -114,16 +102,15 @@ else()
114102
set(CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS} "-Xcompiler ${SSE3_FLAG}")
115103
endif(WITH_AVX)
116104

117-
if(WITH_DSO)
118-
set(CUDA_LIBRARIES "")
119-
add_definitions(-DPADDLE_USE_DSO)
120-
endif(WITH_DSO)
121-
122105
# Include cuda and cudnn
123106
include_directories(${CUDNN_INCLUDE_DIR})
124107
include_directories(${CUDA_TOOLKIT_INCLUDE})
125108
endif(NOT WITH_GPU)
126109

110+
if(WITH_DSO)
111+
add_definitions(-DPADDLE_USE_DSO)
112+
endif(WITH_DSO)
113+
127114
if(WITH_DOUBLE)
128115
add_definitions(-DPADDLE_TYPE_DOUBLE)
129116
set(ACCURACY double)
@@ -135,6 +122,10 @@ if(NOT WITH_TIMER)
135122
add_definitions(-DPADDLE_DISABLE_TIMER)
136123
endif(NOT WITH_TIMER)
137124

125+
if(NOT WITH_PROFILER)
126+
add_definitions(-DPADDLE_DISABLE_PROFILER)
127+
endif(NOT WITH_PROFILER)
128+
138129
if(WITH_AVX)
139130
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${AVX_FLAG}")
140131
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${AVX_FLAG}")

RELEASE.md

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
# Release v0.9.0
2+
3+
## New Features:
4+
5+
* New Layers
6+
* bilinear interpolation layer.
7+
* spatial pyramid-pool layer.
8+
* de-convolution layer.
9+
* maxout layer.
10+
* Support rectangle padding, stride, window and input for Pooling Operation.
11+
* Add —job=time in trainer, which can be used to print time info without compiler option -WITH_TIMER=ON.
12+
* Expose cost_weight/nce_layer in `trainer_config_helpers`
13+
* Add FAQ, concepts, h-rnn docs.
14+
* Add Bidi-LSTM and DB-LSTM to quick start demo @alvations
15+
* Add usage track scripts.
16+
17+
## Improvements
18+
19+
* Add Travis-CI for Mac OS X. Enable swig unittest in Travis-CI. Skip Travis-CI when only docs are changed.
20+
* Add code coverage tools.
21+
* Refine convolution layer to speedup and reduce GPU memory.
22+
* Speed up PyDataProvider2
23+
* Add ubuntu deb package build scripts.
24+
* Make Paddle use git-flow branching model.
25+
* PServer support no parameter blocks.
26+
27+
## Bug Fixes
28+
29+
* add zlib link to py_paddle
30+
* add input sparse data check for sparse layer at runtime
31+
* Bug fix for sparse matrix multiplication
32+
* Fix floating-point overflow problem of tanh
33+
* Fix some nvcc compile options
34+
* Fix a bug in yield dictionary in DataProvider
35+
* Fix SRL hang when exit.
36+
37+
# Release v0.8.0beta.1
38+
New features:
39+
40+
* Mac OSX is supported by source code. #138
41+
* Both GPU and CPU versions of PaddlePaddle are supported.
42+
43+
* Support CUDA 8.0
44+
45+
* Enhance `PyDataProvider2`
46+
* Add dictionary yield format. `PyDataProvider2` can yield a dictionary with key is data_layer's name, value is features.
47+
* Add `min_pool_size` to control memory pool in provider.
48+
49+
* Add `deb` install package & docker image for no_avx machines.
50+
* Especially for cloud computing and virtual machines
51+
52+
* Automatically disable `avx` instructions in cmake when machine's CPU don't support `avx` instructions.
53+
54+
* Add Parallel NN api in trainer_config_helpers.
55+
56+
* Add `travis ci` for Github
57+
58+
Bug fixes:
59+
60+
* Several bugs in trainer_config_helpers. Also complete the unittest for trainer_config_helpers
61+
* Check if PaddlePaddle is installed when unittest.
62+
* Fix bugs in GTX series GPU
63+
* Fix bug in MultinomialSampler
64+
65+
Also more documentation was written since last release.
66+
67+
# Release v0.8.0beta.0
68+
69+
PaddlePaddle v0.8.0beta.0 release. The install package is not stable yet and it's a pre-release version.

benchmark/.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
paddle/image/logs
2+
paddle/image/*.pyc
3+
paddle/image/train.list
4+
paddle/rnn/logs
5+
paddle/rnn/*.pyc
6+
paddle/rnn/imdb.pkl
7+
caffe/image/logs
8+
tensorflow/image/logs
9+
tensorflow/rnn/logs

0 commit comments

Comments
 (0)