xutianbing
ec6b13dbfc
clean up unused code.
8 years ago
hedaoyuan
54a2b1f682
Merge pull request #1003 from hedaoyuan/remove_main
...
Remove the main function inside the test file
8 years ago
liaogang
c8d0791acc
Add common.h and remove DisableCopy and Typedefs
8 years ago
hedaoyuan
4af4883f22
fix some tests which only need paddle::initMain in main
8 years ago
hedaoyuan
cf498cfad5
move TestMain.cpp into utils and fix some tests for check
8 years ago
liaogang
f09989a1b2
Remove utils/CommandLineParser.h
8 years ago
tianbingsz
42e121791e
Merge pull request #854 from hedaoyuan/cmrnorm
...
Cmrnorm
8 years ago
hedaoyuan
f1a94e3ff7
follow comments
8 years ago
hedaoyuan
bf32411191
Merge branch 'develop' of https://github.com/baidu/Paddle into cmrnorm
8 years ago
hedaoyuan
5fddd99e18
move TEST from test_matrixCompare.cpp to cross_map_normal_op_test.cpp
8 years ago
xutianbing
4fbf94993b
Refactor MUL functions, pass object reference instead of shared_ptr.
8 years ago
xutianbing
706c572424
Matrix API refactor, when passing parameters, convert shared_ptr (MatrixPtr) to
...
reference or raw matrix (Matrix & or Matrix *)
contextProjectionForward
contextProjectionBackward
contextProjectionBackwardData
contextProjectionBackwardWeight
classificationError
The mul functions would be updated later.
8 years ago
Yu Yang
af5d954bdf
Clean BatchNorm Code.
8 years ago
hedaoyuan
d11e2b4013
Remove some useless code
8 years ago
hedaoyuan
22a5e478f3
move Function to function dir
8 years ago
hedaoyuan
d2d0010609
add CrossMapNormalGradFunc
8 years ago
hedaoyuan
9171ab0ac1
Merge branch 'develop' of https://github.com/baidu/Paddle into cmrnorm
8 years ago
hedaoyuan
4ebb3eb759
imporve Function
8 years ago
hedaoyuan
ce1d98e083
Add a Tensor to use as a Function argument
8 years ago
liaogang
3d0e73bd32
Remove custom glog-like and gflags-like macros
8 years ago
hedaoyuan
a1d2abc16d
add Function
8 years ago
Yu Yang
ea7dd7c925
Fix logic error before
8 years ago
Yu Yang
f63fbcdd29
Add unit test for row buffer.
8 years ago
hedaoyuan
e357f27158
add GPU CrossMapNormal
8 years ago
hedaoyuan
bf47397125
Merge pull request #859 from hedaoyuan/fix_warning
...
Fix warning
8 years ago
Yu Yang
fa2c06fb05
Add comments
8 years ago
Yu Yang
a3043989a4
Extract RowBuffer class for SparseRowMatrix.
...
* The original SparseRowMatrix use two fields to store each rows,
which let code very confusing. Try to extract a RowBuffer class,
for SparseRowMatrix data storage, and manage auto-growth logic.
8 years ago
hedaoyuan
72bb211b2f
remove COMPILER_SUPPORT_CXX11
8 years ago
hedaoyuan
4736246515
fix warning
8 years ago
hedaoyuan
95035908b4
add CrossMapNormal
8 years ago
hedaoyuan
529f24c262
cpu cmrnorm
8 years ago
Yu Yang
068bfbb817
All file pass pre-commit hook
8 years ago
Yi Wang
e9549cbb78
Change "Baidu, Inc" into "PaddlePaddle Authors"
8 years ago
liaogang
0eaf9f64e6
Remove sparse length limits
8 years ago
hedaoyuan
abdcb8e128
format some files
8 years ago
hedaoyuan
d04c206f30
remove the 'using namespace paddle;' in the test files
8 years ago
hedaoyuan
84a0574ac3
add a PerfUtils.h
8 years ago
hedaoyuan
8d73681324
fix some errors due to merge
8 years ago
hedaoyuan
671db8deaa
Merge branch 'develop' of https://github.com/baidu/Paddle into tensor_merge
8 years ago
hedaoyuan
a1d1565fb9
add some comments
8 years ago
hedaoyuan
7e0b51f28f
some bugs fix
8 years ago
hedaoyuan
a7855d3ebb
Lazy Assignment
8 years ago
hedaoyuan
3a5d60bc1c
compile test_Tensor.cu with CPU
8 years ago
hedaoyuan
07f30241b8
fixed some nvcc compilation related
8 years ago
hedaoyuan
e63f1e6952
merge from cooder
8 years ago
hedaoyuan
11479901a7
some bug fix
8 years ago
hedaoyuan
956b661cd9
Merge branch 'master' into auto_compare
8 years ago
hedaoyuan
ee52c75946
delete BaseMatrixCompare, and add AutoCompare::cmpWithoutArg
8 years ago
hedaoyuan
c410382145
add some comments
8 years ago
hedaoyuan
1df826e767
Add a AutoCompare and move some test form test_matrixCompare.cpp to test_Matrix.cpp
8 years ago
hedaoyuan
f70fc4a439
move some test from test_matrixCompare.cpp to test_BaseMatrix.cpp and test_Matrix.cpp
8 years ago
xutianbing
5de5453d15
add code comments for deepSwap
8 years ago
xutianbing
c7f96de12e
add unit test for deepSwap
8 years ago
xutianbing
cf205d0d43
deepSwap
8 years ago
hedaoyuan
1873945dc7
Add test_Matrix.cpp for auto compare member functions of class Matrix
8 years ago
hedaoyuan
1bac8e60c3
modify the file name test_matrix.cpp to test_SparseMatrix.cpp
8 years ago
hedaoyuan
409a8a181d
Merge branch 'develop' of https://github.com/baidu/Paddle into auto_compare
8 years ago
hedaoyuan
85e0cd709c
move some BaseMatrix test from test_matrixCompare.cpp to test_BaseMatrix.cpp
8 years ago
hedaoyuan
ff7b4284f4
Add a auto compare for BaseMatrix
8 years ago
liaogang
e488001675
Merge conflict with hl_cuda_device.cc
8 years ago
Luo Tao
80c68d38ff
clang format .cc .h .cpp .c and .hpp file
8 years ago
Yu Yang
5e738ca333
Change auto => size_t in BaseMatrix.cu
...
* Because it is a cuda source file, and we need to support c++ 03 in
cuda.
8 years ago
liaogang
8393c19ccf
Add recursive mutex and counter for gpu profiler
8 years ago
Yu Yang
20600e7036
Fix several cpp issues
...
* Different Type compare.
* ostream << should pass a const object.
* remove always true checks.
8 years ago
liaogang
2c84c1ecfb
Add profiler object and update docs
8 years ago
liaogang
84cab2c763
Merge conflict with develop branch
8 years ago
liaogang
e8c0fb9e14
Add GPU Profiler unit test
8 years ago
Yu Yang
9115ab1c11
Merge pull request #450 from reyoung/feature/pre-commit-hooks-scripts
...
Feature/pre commit hooks scripts
8 years ago
xuwei06
a6ad9a1608
Fix unittest
...
Change-Id: Ic80845c892c96c37a0df0ddc433fe1aeaa5a9d1c
8 years ago
xuwei06
bf6f690f31
Add ScalingProjection
...
out = w * input
where w is a parameter of size 1
Change-Id: Ife682d62323ceb1a20cbbf6269421b20a862d888
8 years ago
Yu Yang
836d61382f
Update pre-commit-config
...
* Check all files by pre commit hooks
8 years ago
Haonan
5591292b7a
modifications according to comments
8 years ago
Haonan
069d0004dc
multi_binary_cross_entropy when ids vector is provided
8 years ago
qijun
9dd588b414
fix merge conflicts
8 years ago
gangliao
8295eb91bf
Merge pull request #287 from gangliao/bilinear
...
Add bilinear interpolation layer
8 years ago
qingqing01
cfc965d52c
Merge pull request #269 from wangyang59/deconv
8 years ago
qijun
61444d903d
Merge remote-tracking branch 'baidu/develop' into feature/sppnet
8 years ago
wangyang59
af7a50c0d4
minor changes on deconv implementation and add protostr test for deconv layer
8 years ago
wangyang59
53e1629a43
Refactored imageSize in ConvBaseLayer to MathUtil
8 years ago
liaogang
bc2b521c24
Follow comments
8 years ago
Liang Zhao
992ac8f9a1
Implement setDiag() with BaseMatrix::assign()
8 years ago
Liang Zhao
8c40bfd0fc
Make matrix well-conditioned when unittest inverse
8 years ago
qijun
3553576e6e
Merge remote-tracking branch 'baidu/develop' into feature/sppnet
8 years ago
liaogang
cc04a7d7ab
Merge branch 'develop' of https://github.com/baidu/Paddle into bilinear
8 years ago
liaogang
db1757556e
Follow comments
8 years ago
hedaoyuan
125c19a3c3
fix some nvcc compile options ( #392 )
8 years ago
qijun
db569f293e
fix merge conflict
8 years ago
hedaoyuan
a07da94939
fix floating-point overflow problem of tanh ( #355 )
8 years ago
qijun
5ece5c96ad
add python wrap for sppLayer
8 years ago
liaogang
5a1e7dbc6a
Fix conflict
8 years ago
luotao1
e802471c58
abstract outputSize function in CNN-related layers ( #314 )
8 years ago
liaogang
724d6dd40a
Replace outputH to batchSize
8 years ago
liaogang
d373c10091
Fix bilinear interp bug
8 years ago
liaogang
bd38facada
Fix conflict
8 years ago
liaogang
57348806b5
Follow comments
8 years ago
lzhao4ever
36bda94eb4
include mkl_lapacke.h ( #359 )
8 years ago
lzhao4ever
5f2059db05
Add matrix inverse ( #240 )
...
* Add matrix inverse
8 years ago
qijun
766a61c374
fix conflict with baidu/develop
8 years ago
qingqing01
45c81a414f
Add job=time in trainer, refine cudnn_conv to reduce gpu memory and speed up training. ( #218 )
...
* Add benchmark for PaddlePaddle, tensorflow and caffe
* ConvProjection to reduce memory for goolenet
* Add unit test for ConvProjection.
1. unit test in test_LayerGrad.
2. compare the ConvPorjection and CudnnConvLayer, also compare the concat_layer+img_conv_layer and concat_layer_conv_projection.
* Reduce cudnn_conv memory and add benchmark document.
1. Use TmpMatrix as the workspace in cudnn_conv to reduce gpu memory. It reduce lots of memory.
2. Add benchmark document.
3. fix smallnet_mnist_cifar.py in paddle.
* Add job=time and refine cudnn_conv to reduce gpu memroy and speed up
* Refine cudnn_conv and shared biases operation in concat_layer and mixed_layer.
* follow comments
* follow comments
* Use unique_ptr to prevent memory leaks in CudnnConvLayer.
8 years ago
qijun
cdac60f616
add SpatialPyramidPoolLayer c++ support
8 years ago
liaogang
460320a41c
fix type unmatch on gcc
8 years ago
liaogang
fd4eeaf59c
Merge conflict with maxout layer
8 years ago
liaogang
ddfff3a7fd
Add bilinear interpolation layer
8 years ago
backyes
46bd5f53e3
add input sparse data check for sparse layer at runtime ( #247 )
...
* add input sparse data check for sparse layer at runtime,
to avoid invalid data access at pserver end while doing prefetch
* remote sparse design support binary sparse and float saprse both
9 years ago
luotao1
3dd8c9bea4
add maxout layer, including interface and unittest ( #229 )
...
* add maxout layer, including interface and unittest
* follow maxout comments
* auto setting channels
* fix unittest bug in test_RecurrentGradientMachine
9 years ago
luotao1
91df606280
remove some copyfrom in AgentLayer and ExpandLayer, fix warning in seq2seq config ( #183 )
9 years ago
qingqing01
191fafe355
support rectangle padding, stride, window and input for PoolProjection ( #115 )
...
* support rectangle padding, stride, window and input for PoolProjection
* Follow comments.
1. Remove start
2. refine img_pool_a/b.conf for test_NetworkCompare
3. Split unit test
* Modify the test in img_layers.py
9 years ago
Yu Yang
cbb904356c
Remove main function in some unittest.
9 years ago
liaogang
a8df411192
Replace random_shuffle using shuffle.
...
* reduce trainer count for unit test on MAC OSX
9 years ago
liaogang
b8d26ff4d7
fix float except bugs
9 years ago
liaogang
536bf7d87f
fix poolAllocator unordered_map bug on Mac OS X
...
* using map to replace unordered_map on Mac
9 years ago
liaogang
92ca98d5f5
Merge remote-tracking branch 'upstream/master'
9 years ago
liaogang
1f8c21978d
replace fabsf() using std::abs
9 years ago
liaogang
d8366a67fa
fix bug on thread barrier
9 years ago
Haonan
688eeefab3
fixed issues with synchronizing streams when copy from gpu to cpu
...
* by default, synchronize default_stream after resizeAndCopyFrom
* add sync in some places after resizeAndCopyFrom using other streams
9 years ago
liaogang
b2d65384e9
Merge remote-tracking branch 'origin/master'
...
# Conflicts:
# paddle/math/tests/test_perturbation.cpp
9 years ago
liaogang
1df0c7b149
avoid link failed on unit test for mac os
9 years ago
Yu Yang
55a1a7588b
Disable a unittest will use large memory by grep
9 years ago
Yu Yang
a238b11f83
Fix linux compile
9 years ago
liaogang
58f74e2ca1
Add main entry for unit test files and replace memalign by posix_memalign
9 years ago
liaogang
3f5ce64cab
fix StorageEngine::singleton and std::function<void()> type unmatched.
9 years ago
liaogang
445d1e8201
Support MAC OS for PaddlePaddle
9 years ago
He
903d5c7ec0
bug fix for hl_matrix_classification_error
9 years ago
liaogang
291318e5a2
delete Bits.h and move its func into utils/Util.h
...
Change-Id: Ib7f7d3c65c9850b8420f9a4799835a7ea03572bd
9 years ago
dangqingqing
54d4968d38
Refine code and comments for CRMNormLayer.
...
ISSUE=4612671
git-svn-id: https://svn.baidu.com/idl/trunk/paddle@1501 1ad973e4-5ce8-4261-8a94-b56d1f490c56
9 years ago
dangqingqing
7857d7f74b
Bug fix for image classification demo and ResNet model zoo when using CPU.
...
But need to check consistency of CPU and GPU later for conv layer.
ISSUE=4592155
git-svn-id: https://svn.baidu.com/idl/trunk/paddle@1427 1ad973e4-5ce8-4261-8a94-b56d1f490c56
9 years ago
zhangjinchao01
b72beee4f0
fix dash and space bug,
...
ISSUE=4586495
git-svn-id: https://svn.baidu.com/idl/trunk/paddle@1408 1ad973e4-5ce8-4261-8a94-b56d1f490c56
9 years ago