Yu Yang
b64aac542a
Merge pull request #3857 from qingqing01/grad_test_for_multi_inputs
...
Enhance the unit test framework to explicitly test whether the operator correctly handles gradients for multiple inputs.
9 years ago
qijun
a22606ca0c
fix bug
9 years ago
qijun
f314330c23
refactor operator python test and add sum operator
9 years ago
wanghaoshuang
e687f3f540
Make attribute support for std::vector<std::pair<int, int>>
9 years ago
Luo Tao
020e45f715
follow comments to revert add_two_op to add_op
9 years ago
dangqingqing
ab55d7933b
revert scatter_op and other mirror changes.
9 years ago
Tao Luo
b3463bfffc
Merge pull request #3851 from luotao1/no_kernel_op
...
package a new USE_NO_KERNEL_OP for USE_OP_ITSELF
9 years ago
Yu Yang
3d9d32a1c1
Invoke check_grad many times for no_grad_set
9 years ago
dangqingqing
447033296d
Make some operator correctly handle gradients for multi inputs.
9 years ago
caoying03
10eacac9a7
follow comments and fix unittest.
9 years ago
Luo Tao
5b93ac7778
package a new USE_NO_KERNEL_OP for USE_OP_ITSELF
9 years ago
Xinghai Sun
c657537b4f
Correct some typos.
9 years ago
Xinghai Sun
b1a185524f
Fixed SEGFAULT of dropout operator in GPU.
9 years ago
Xinghai Sun
91215bcef9
Fix a bug causing wrong gradient results in cos_sim op.
9 years ago
yangyaming
3970f240b3
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into fix-3736
9 years ago
yangyaming
c33ddc74c1
Fix some bugs, add more unittests.
9 years ago
Xinghai Sun
ed72af48ce
Add cos_sim op.
9 years ago
tensor-tang
f878c0c6ba
add use_mkldnn flag to v2
9 years ago
yangyaming
e9cc32820d
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into fix-3736
9 years ago
yangyaming
6bef079660
Follow coding style and move reshaping operation to paddle tensor.
9 years ago
caoying03
3d1b87193d
Merge branch 'develop' into cross_entropy_over_beam
9 years ago
caoying03
09e903eb94
fix v2 infer interface.
9 years ago
yangyaming
a4df3f5bd8
Finish framework of squared_l2_distance_op.
9 years ago
wanghaoshuang
2db7dedea9
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into pad_op
...
Conflicts:
paddle/pybind/pybind.cc
9 years ago
wanghaoshuang
26cec83901
Add pad op
9 years ago
Tao Luo
47eb869197
Merge pull request #3571 from luotao1/huber_loss
...
refine Huber loss, add huber_regression_cost
9 years ago
qingqing01
751d8533e8
follow wuyi's comments.
9 years ago
qingqing01
8dded4f299
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into write_new_op
9 years ago
qingqing01
c19eae4c8e
update doc about how to write new operators.
9 years ago
Luo Tao
acd8a22ed1
Merge branch 'develop' into huber_loss
9 years ago
Cao Ying
2e3f2af71c
Merge pull request #3701 from lcy-seso/save_parameter_name_in_ordereddict
...
save parameters into OrderedDict and refine the comments.
9 years ago
caoying03
f0b25c4cfb
follow comments to refine the comments.
9 years ago
caoying03
be4c0123c4
follow comments.
9 years ago
caoying03
4a83dde594
save parameters into ordered dict.
9 years ago
qiaolongfei
787cb8ce5d
reset pass num to 1
9 years ago
qiaolongfei
721b5020fa
change predict size to label class_num
9 years ago
zchen0211
bfeecfd3d2
fix problems
9 years ago
zchen0211
97649bf9b2
fix codes in scatter
9 years ago
zchen0211
2edb69a789
with in-place option
9 years ago
zchen0211
c5e28dd1a0
scatter check in
9 years ago
zchen0211
a88901109b
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into develop
9 years ago
qingqing01
3663bd881d
Merge pull request #3620 from qingqing01/lookup_table
...
Add a lookup table op and a CUDA helper.
9 years ago
Luo Tao
7596191821
Merge branch 'develop' into huber_loss
9 years ago
Qiao Longfei
b9a4b2ee52
Merge pull request #3564 from jacquesqiao/mnist
...
init mnist
9 years ago
qiaolongfei
625b15355a
optimize code
9 years ago
qiaolongfei
3648165b63
add gpu support
9 years ago
qingqing01
aafeff0fde
Merge branch 'develop' into lookup_table
9 years ago
zchen0211
fabfe17a42
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into develop
9 years ago
qiaolongfei
0e300f9bf0
use init_net and random_op to initialize parameter
9 years ago
zchen0211
161a15f055
gradient check
9 years ago
qiaolongfei
37cd8165b3
change 128 to BATCH_SIZE
9 years ago
qiaolongfei
1e4566cac0
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into mnist
9 years ago
qiaolongfei
9db4ad6130
reduce pass num to 1
9 years ago
qiaolongfei
cf515e4a72
optimize code and name
9 years ago
qiaolongfei
76677f2577
add test
9 years ago
dangqingqing
068ddcaf92
Resovle conflicts.
9 years ago
qingqing01
fe480b9ebe
Merge branch 'develop' into lookup_table
9 years ago
Yu Yang
25e6c014a4
Merge branch 'feature/identity_op' into feature/minus_op
9 years ago
Yu Yang
b53f4e0be7
Merge branch 'develop' of github.com:baidu/Paddle into feature/identity_op
9 years ago
qiaolongfei
6f4b968f56
can train the parameters
9 years ago
dangqingqing
d8ea560eb2
resolve conflicts
9 years ago
dangqingqing
f188e22b33
Remove set functor and add comapre_grad test
9 years ago
qiaolongfei
a13798e8f7
rename add_op to append_op
9 years ago
qiaolongfei
d41a551693
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into mnist
9 years ago
qiaolongfei
d3c65a64dc
fix data reader
9 years ago
qiaolongfei
51792022c9
refine code and add debug info
9 years ago
zchen0211
0a0f194836
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into develop
9 years ago
dangqingqing
a8d072c769
fix bug.
9 years ago
dangqingqing
31f59d2b31
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into lookup_table
9 years ago
qingqing01
f931140663
Merge pull request #3501 from qingqing01/cross_entropy
...
Implement GPU kernel for cross entropy operator.
9 years ago
dangqingqing
1795e57671
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into lookup_table
9 years ago
dangqingqing
0f3b9e4112
lookup table op, cuda helper and set functor
...
1. finish lookup table CPU and GPU kernel
2. Add some cuda helper
3. Add some math funtor
9 years ago
qiaolongfei
5a8fbb7d19
add data
9 years ago
Yu Yang
ce723af062
Merge pull request #3585 from reyoung/feature/rename_to_append_op
...
Rename `Net::AddOp` to `Net::AppendOp`
9 years ago
QI JUN
7443b2e481
Merge pull request #3596 from QiJune/implement_random_function
...
refine random related operators
9 years ago
qijun
36e8e72566
expose random seed to users
9 years ago
zchen0211
53e71b44f4
gather op bp passed
9 years ago
zchen0211
f3df105455
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into develop
9 years ago
qiaolongfei
118dd1494f
can run, for debug
9 years ago
qiaolongfei
f6dd787692
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into mnist
9 years ago
zchen0211
d3c29e9d16
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into develop
9 years ago
qiaolongfei
950dbde56c
fix rowwise add grad op
9 years ago
Yu Yang
d3f219aa99
Change IdentityOp to ScaleOp
9 years ago
Yu Yang
c108d6108c
Identity operator and its gradient
9 years ago
qijun
d525abed95
refine random related ops
9 years ago
Yu Yang
f1e5533541
Rename `Net::AddOp` to `Net::AppendOp`
...
Fix #3582
9 years ago
dangqingqing
a8863a8d5b
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into cross_entropy
9 years ago
dangqingqing
8f6c8780a5
Replace functor by function.
9 years ago
qiaolongfei
137537b14f
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into mnist
9 years ago
zchen0211
78553768ba
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into develop
9 years ago
dongzhihong
b59002daef
"fix math gemm lda order error"
9 years ago
dongzhihong
2799da6634
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into mul_op
9 years ago
Qiao Longfei
ab270c3899
Merge pull request #3183 from dzhwinter/add_op_gradient
...
"add rowwise add backward op"
9 years ago
Luo Tao
1c0a1a076d
Merge branch 'develop' into huber_loss
9 years ago
Luo Tao
3065cb2625
add huber_regression_cost
9 years ago
dangqingqing
70285cce32
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into cross_entropy
9 years ago
qiaolongfei
46d30ec680
init minst.py
9 years ago
qiaolongfei
230e613c6f
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into fix-sgd
9 years ago
dongzhihong
cef27dab47
"add fixl"
9 years ago
dongzhihong
448d4db5c1
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into add_op_gradient
9 years ago
dongzhihong
88360100bf
Merge remote-tracking branch 'origin/develop' into mul_op
9 years ago
gangliao
62aedcee31
Merge pull request #3553 from reyoung/feature/unittest_for_mean_grad
...
Add MeanOp's Gradient Test And Fix Mean Op Gradient
9 years ago
Yu Yang
e28e007373
Enable test_sgd_op
9 years ago
Luo Tao
27a99bfb14
Add base class for huber_regression_cost and huber_classification_cost
9 years ago
Yu Yang
7f8c3f8214
Add MeanOp's Gradient Test And Fix Mean Op Gradient
9 years ago
qingqing01
c68bfc30a8
Merge pull request #3476 from qingqing01/bp_test
...
Compare the gradient consistency between GPU and CPU calculations
9 years ago
dangqingqing
5181aefc6b
tune max relative error for sigmoid op unit test.
9 years ago
dangqingqing
18dcc1c0bc
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into bp_test
9 years ago
dangqingqing
a28a5564d2
add more comments and fix code style.
9 years ago
Yu Yang
4932f7529f
Merge branch 'develop' of github.com:baidu/Paddle into feature/remove_shared_ptr
9 years ago
zchen0211
ee29d1b6e2
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into develop
9 years ago
zchen0211
6075928d55
gather op added
9 years ago
Yu Yang
f15e083098
Remove std::shared_ptr in Python & C++
...
* Also simplify pybind implementation by using OperatorBase as holder
type.
9 years ago
wanghaoshuang
4be8189a80
Modify pserver_spec's doc.
9 years ago
superjom
1543eeb4ce
init
9 years ago
wanghaoshuang
fd107ae550
Modify pserver_spec's doc.
9 years ago
wanghaoshuang
57d96f88e1
Fix document error.
9 years ago
zchen0211
4d2adab772
gather op added with python unittest
9 years ago
zchen0211
323d4233f3
gather op added with python unittest
9 years ago
dangqingqing
26475cd9ba
Use clipping log in cuda kernel, making it same with CPU.
9 years ago
dangqingqing
49aa2c042c
Implement GPU kernel for cross entropy operator.
9 years ago
helinwang
245f622520
Merge pull request #3479 from helinwang/recordio
...
Fix local recordio reader
9 years ago
dongzhihong
4c9699c5f8
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into mul_op
9 years ago
Yan Chunwei
0079fa3256
Rnn make stepnet member ( #3469 )
...
* make stepnet member
* add pybind support
* fix Inputs Outputs
* remove unique_ptr
9 years ago
Helin Wang
2da240c7ec
fix local recordio reader
9 years ago
dangqingqing
9a0eedf5d4
fix bug.
9 years ago
dangqingqing
01d9134067
Add test_gradient_checker.py
9 years ago
dangqingqing
84d6434d53
Compare the gradient consistency between GPU and CPU calculations.
9 years ago
dongzhihong
43ba24e051
Merge remote-tracking branch 'origin/develop' into add_op_gradient
9 years ago
dongzhihong
632b320e9d
"refine argument with new style "
9 years ago
dongzhihong
426d7328a0
Merge remote-tracking branch 'origin/develop' into mul_op
9 years ago
Yu Yang
81f5f86140
Merge pull request #3322 from wangkuiyi/refactorize_framework_proto
...
Refactorize framework/*.proto
9 years ago
Yu Yang
4a604c2651
Polish Our code by YuYang's review
9 years ago
superjom
a0b49a6c5b
add test to CMAKE
9 years ago
superjom
0d1bc8ab9b
fix res
9 years ago
superjom
b1b71eab6c
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into rnn_forward_result_test
9 years ago
Yu Yang
610a25844f
Fix all unit tests in Python
9 years ago
Yu Yang
d6d46412ef
Merge branch 'develop' of github.com:baidu/Paddle into final_fixes
9 years ago
Yi Wang
0dc75ab3ef
Merge pull request #3410 from jacquesqiao/numeric-gradient-design
...
add auto gradient check design doc
9 years ago
Yi Wang
96fc9e7d1b
Merge pull request #11 from reyoung/fix_python_tests
...
Fix python unit tests
9 years ago
Yu Yang
a81b353788
Merge pull request #3417 from reyoung/feature/remove_fc_op_in_cpp
...
Remove FC Op, since it should be added in Python side
Fix #3418
9 years ago
Yu Yang
133a8ea7fd
Polish Error message
9 years ago
Yancey
7e8c337a68
Fix save large parameters failed ( #3397 )
...
Fix save large parameters crashed
9 years ago
Yu Yang
9a592ec3aa
Remove FC Op, since it should be added in Python side
9 years ago
武毅
01e9e44348
able to print gradients in event_handler ( #3085 )
9 years ago
Yu Yang
c99f84aced
Fix python unit tests
9 years ago
武毅
886e66a5ff
golang pserver use OptimizerConfig.proto ( #3358 )
...
* golang pserver optimizer config for user
* update
* update
* update
* update
* update by comments
* fix errors
* fix errors
9 years ago
qiaolongfei
f485a9bc50
add auto gradient check design doc
9 years ago
gangliao
be473a62eb
Merge pull request #3357 from jacquesqiao/python-test
...
support python test without installation python package
9 years ago
Yu Yang
7fab7ddd7d
Merge branch 'develop' of github.com:baidu/Paddle into feature/refactorize_framework_proto
9 years ago
qingqing01
7202f425dd
Merge branch 'refactorize_framework_proto' into feature/refactorize_framework_proto
9 years ago
Yu Yang
3f34ff8f9f
Comment test_gaussian_random_op for hotfix
9 years ago
dongzhihong
2ddb11222a
"on hold"
9 years ago
dongzhihong
7c0cb0c790
"fix ci launch"
9 years ago
dzhwinter
56faf51343
Merge pull request #3060 from dzhwinter/random_op
...
Random op
9 years ago
dongzhihong
68bfc3ff96
"add python test"
9 years ago
qingqing01
665e1a335b
Update grad_op_builder after refactoring framework proto.
9 years ago
liaogang
5e5c441245
Enable Python Unit Test before make install
9 years ago
dongzhihong
f702e7977d
"relauch ci"
9 years ago
Yu Yang
f0a85b0805
Rename __is_close -> assert_is_close()
9 years ago
Yu Yang
c957445c72
A better error message for gradient checker
...
* Give which parameter, which element are wrong. And what max_diff is.
9 years ago
dongzhihong
bbd7378b43
"ci job failed weired. restart ci job."
9 years ago
dongzhihong
6bac3e17b5
"remove unused test net modified"
9 years ago
dongzhihong
d98e299d3b
"keep same with uniform random op"
9 years ago
dongzhihong
b7ee1e7d9c
"backward check todo"
9 years ago
dongzhihong
6535a7b001
Merge remote-tracking branch 'origin/develop' into random_op
9 years ago
Qiao Longfei
e31a469ee0
add gradient test framework ( #3226 )
...
* init grad op checker
* can run
* add GradeChecker class
* use get_numeric_gradient
* refine code
* add softmax and cross entropy auto grad test
* use close to judge op_grad and numeric_grad
* add cpu and gpu compare
* add comments
* add support_gpu
* fix allclose
* fix name error and symplify code
* optimize gradient checker
* add test_cross_entropy_op
* update gradient_checker.py
* optimize code
* use random.uniform instead of random.random
* fix type bug
* optimize check_grad
* put SupportGPU into OperatorBase
* typo
9 years ago
dongzhihong
23ac845921
Merge remote-tracking branch 'origin/develop' into random_op
9 years ago
superjom
e9a92e3ed8
add fc test
9 years ago
superjom
001b62a4c7
finish simple rnn in python
9 years ago
dongzhihong
8804b242d8
Merge remote-tracking branch 'origin/develop' into random_op
9 years ago
dongzhihong
52d2ebdaef
"test gaussian random in python side"
9 years ago
Yu Yang
b861c01963
Merge branch 'develop' into feature/uniform_random_op
9 years ago
fengjiayi
e7b3e13959
Rewrite test based on new python test format
9 years ago
fengjiayi
5d2b3fb09d
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into dev_add_FillZerosLikeOp_test
9 years ago
Yu Yang
ffd6c3cea6
Merge branch 'develop' into feature/change_op_creation
9 years ago
Yu Yang
e5847924f3
Merge branch 'develop' of github.com:baidu/Paddle into feature/uniform_random_op
9 years ago
Qiao Longfei
493396d81c
add support_gpu ( #3304 )
...
* add support_gpu
* fix allclose
* fix name error and symplify code
9 years ago
dongzhihong
58561d8f56
Merge remote-tracking branch 'origin/develop' into random_op
9 years ago
Yu Yang
d7f0eb6baf
Merge branch 'feature/change_op_creation' into feature/uniform_random_op
9 years ago
Yu Yang
460326f4b2
Fix CI Test
9 years ago
Yi Wang
efa50a4525
Merge pull request #3181 from qingqing01/sigmoid_bp
...
Sigmoid backward implementation.
9 years ago
Yu Yang
9f816352e5
Follow comments
9 years ago
Yan Chunwei
7665bdba13
Rnn forward logic test ( #3291 )
...
* finish forward debug
9 years ago
Yu Yang
5d074c917c
Merge branch 'develop' into feature/change_op_creation
9 years ago
gangliao
ec2c753c3d
Merge pull request #3290 from PaddlePaddle/cblas_new
...
Import HPC linear algebra libs as cblas target for cc_library deps
9 years ago
Yu Yang
fd0bdb4f8a
Merge branch 'feature/change_op_creation' into feature/uniform_random_op
9 years ago
dangqingqing
9f490c7748
update to develop branch.
9 years ago
liaogang
7ecdf6ad93
Add py_test
9 years ago
Yu Yang
e376bda42c
Add uniform random operator
...
It can be run both CPU/GPU. configure attributes are:
* min: the min value of uniform random
* max: the max value of uniform random
* dims: the dimension of output tensor
* seed: the random seed of uniform random. 0 means generate a seed each
time.
9 years ago
dangqingqing
f72cefabce
fix typo and resolve conflicts.
9 years ago
Yu Yang
a1e16bb5d3
Merge branch 'develop' into feature/change_op_creation
9 years ago
dongzhihong
2447c34a0e
merge origin/develop
9 years ago
Yan Chunwei
c72253127f
crossentropy grad op ( #3186 )
...
* init cross entropy graident
* add crossentropy grad op
* remove details
* fix static compile
9 years ago
QI JUN
10ee3dcbcf
Merge pull request #3248 from QiJune/refine_op_test_compare
...
use isclose instead of assert_almost_equal
9 years ago
Yu Yang
b4ebb3c85c
Change attr_type_pb2 to attribute_pb2
...
Make ci pass
9 years ago
helinwang
ef8de51587
Merge pull request #3247 from Yancey1989/convert_all_dataset
...
convert dataset into recordio format
9 years ago
fengjiayi
9b0fce516a
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into dev_add_FillZerosLikeOp_test
9 years ago
qijun
dcdd2903fe
use isclose instead of assert_almost_equal
9 years ago
Yancey1989
cbabaa4544
convert dataset into recordio format
9 years ago
dangqingqing
7fdfe1a9c7
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into unit_test
9 years ago
dangqingqing
c540aa040f
Refine unit test in op_test_util
9 years ago
Yu Yang
89d33ff83f
Complete chagne op creation method.
...
Currently use `Operator("fc", X="x", W='w1', B='b1')` as operator
creation method.
Fix #3198
9 years ago
Yu Yang
a239418bdf
Fix unittest for operator.py
...
Rename operator.py to op.py because it is conflict with protobuf
9 years ago
Yu Yang
53f85df1ab
Start doing `python.framework.operator`
9 years ago
Yu Yang
aaf2d66db8
Merge branch 'develop' of github.com:baidu/Paddle into gradient_check_utils
9 years ago
fengjiayi
df84e39a00
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into dev_add_FillZerosLikeOp_test
9 years ago
Qiao Longfei
d953611e86
Softmax grad op ( #3164 )
...
* init softmax grad op
* add compute code
* export Backward to python
* update test ,export op.type to python
* update python test, fix compute bug
* update unit test
* use eigen
* optimize eigen code
* add gpu test
* register softmax_grad GPU kernel and fix test bug
* typo
* follow comments
9 years ago
dangqingqing
4eb25b4793
update code.
9 years ago
Yu Yang
133541ee41
Merge codes
9 years ago
Yu Yang
fbcadb75c6
Merge branch 'develop' of github.com:baidu/Paddle into gradient_check_utils
9 years ago
fengjiayi
589c3d864b
Rewirte test based on python test frameworks
9 years ago
Qiao Longfei
cc6c33b8b2
export Backward to python ( #3174 )
...
* export Backward to python
9 years ago
dangqingqing
bd01cea1f3
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into sigmoid_bp
9 years ago
dangqingqing
0560733c2e
Add sigmoid backward implenmention.
9 years ago
Yu Yang
3e812383bc
Merge branch 'develop' of github.com:baidu/Paddle into gradient_check_utils
9 years ago
Yu Yang
a0590004ce
Add __all__ in `gradient_checker.py`
9 years ago
qijun
341d1880ee
Merge remote-tracking branch 'baidu/develop' into op_gpu_test
9 years ago
Yu Yang
fcc28ccea2
Add comments
9 years ago
Yu Yang
7c42aad412
Initialize Gradient Checker
...
Add get_numeric_gradient API and its unittest.
9 years ago
qijun
81cc7a3227
merge baidu/develop
9 years ago
fengjiayi
244c343b66
Fix a test error
9 years ago
fengjiayi
3a8017d148
Merge branch 'backward_dev' into dev_add_FillZerosLikeOp_test
9 years ago
fengjiayi
c59fe7a039
Add unittest for FillZerosLikeOp
9 years ago
fengjiayi
8bd73159c7
Add unittest for `FillZerosLikeOp`
9 years ago
liaogang
c36a093c5e
Fix conflict
9 years ago
Yancey
ec9d4d527e
Add start_record interface ( #3128 )
...
* add start_record interface
* call master client in reader
* update
* add demo code in comments
* update comments
* delete unittest for recordio reader
9 years ago
liaogang
1e676f684d
Add mean op unit test in python
9 years ago
Yu Yang
5d134a03f1
Refine remove std::shared_ptr in Scope
...
* Make interface of Operator to `const Scope&`
9 years ago
qijun
cf5ac5888e
reduce gpu memory allocation in op_test
9 years ago
qijun
61f94f0002
add EIGEN_USE_GPU macro to op.cu file
9 years ago
qijun
4a1f7bd21f
add gpu python op test
9 years ago
qijun
4cc42171db
merge baidu/develop
9 years ago
dongzhihong
933e55eb06
fix conflict
9 years ago
dongzhihong
47556689d4
"remove unused code"
9 years ago
dongzhihong
4d8ece8a3c
"update"
9 years ago
Yan Chunwei
aee0d3ec5f
RecurrentOp implementation ( #2890 )
...
* add rnn op interfaces
* add Run
* rename state -> memory
* change state -> memory
* make compilable
* add .cc
* init test
* add op fake implementation
* add CreateStepNet and CreateScopes implementation.
* add TODO list
* init memory attributes.
* add LinkMemories
* add PlainNet fake implementation
* Use std::shared_ptr<Scope> in the OpRunContext.
* add test
* disable mutable_data
* finist segmentInput function
* enable mutable_data with a trick
* RNNOp test.
* enable LinkMemories with mutable_data
* update SegmentInput function with comments
* finish ConcatOutput function
* reformat inputs and attributes
boot_memories
* Refine unit test.
* Refine unit test.
* modify inlinks.
* add OpDesc to Net
* fix bug and update unit test.
* move step scopes from inputs to outputs
* fix merge conflict, update SegmentInput function
* add RecurrentOpProtoAndCheckerMaker.
* clean the codes
* Abstract GetStepScopes and GetMaxSeqLen function
* refine LinkMemories
* Refine code and add some comments.
* add backward core
* update for develop branch.
* add forward core
* add forward algorithm
* Add RecurrentGradientAlgorithm implenmention.
* use CopyFrom and Slice function in RecurrentOp
* add unit test for LinkMemories.
* fix unit test.
* use the latest tensor.h, solve conflict
* add maker
* move SegmentInput and ConcatOutput to details nameplace
* unit test for RecurrentGradientAlgorithm.
* apply OperatorBase
* apply net operator.
* move memorys to attributes
* add RecurrentGradientOp
* open test unit test in recurrent_network_op_test.
* revert some files.
* add RecurrentArgument and Link struct to simplify member variable.
* rename.
* move recurrent_op from framework to operators
* add RecurrentGradientOp Init
* fix name
* fix Link.interal/external name
* use namespace operators instead of framework
* clean the code
* use the latest add_op and mul_op, don't test backward now
* Remove ScopePtr and OperatorPtr
* add get_net to pybind
* add test_recurrent_op.py
* add random into gen_tensor
* update to develop branch and refine some code.
* add some comments.
9 years ago
qingqing01
44923db6ee
Merge pull request #3082 from qingqing01/multi_gpu_infer
...
Fix bug for multi-GPU inference.
9 years ago
武毅
c10121e13c
[Done] Sync master client between passes and fix recordio split ( #2948 )
...
* fix recordio split and task passes
* update for pre commit
* update
* update, still need to sync client wait for pass end.
* able to sync passes for task dispatching
* update to comment
* update
* fix yapf check
* why local pre-commit fails? version is the same
* fix race condition
* update
* fix race condition
* this still have duplicate problem in unit test
* update
* update
* update by comment
* update
9 years ago
dangqingqing
7c13292cff
Fix bug for multi-GPU inference.
9 years ago
Cao Ying
eff17a6859
Merge pull request #3049 from lcy-seso/fix_v2_bachnorm_parse
...
enable v2 automatically sets using cudnn-batch norm.
9 years ago
caoying03
ccdc262848
enable v2 use cudnn batch norm automatically.
9 years ago
dongzhihong
e5cb9b77b6
"fix gen list"
9 years ago
dongzhihong
a22567ebef
"fix almost equal error"
9 years ago
dongzhihong
984225ecf1
"fix operator"
9 years ago
qijun
358261f0bd
fix gpu build error
9 years ago
Yu Yang
afe7bf6179
Merge pull request #3032 from reyoung/feature/middle_level_net_api
...
Feature/middle level net api
9 years ago
Yu Yang
61cd828f3a
Follow comments
9 years ago
Yu Yang
754f0c68da
Fix unittest
9 years ago
dongzhihong
32c15a2919
"random op test"
9 years ago
Yu Yang
385bd4648e
Make C lib in `paddle.v2.master.client` lazy load
...
Currently, WITH_GOLANG is a compiling flag, and not all Paddle binary
enable `WITH_GOLANG=ON`. So we cannot ensure that every paddle has
`master.so`. Make load that C libary lazily could let the user run
Paddle without `WITH_GOLANG=ON`.
9 years ago
Yu Yang
b80590d70b
Remove test_plain_net
9 years ago
Yu Yang
0467cd2dfe
Merge branch 'develop' into feature/middle_level_net_api
9 years ago
Helin Wang
3ff0a9fbb1
Implement distributed training save model, improve master.NewClient interface
9 years ago
Yu Yang
0ceeacbe45
Make Scope can lookup variable name by variable
...
* Refine unittest also
9 years ago
Yu Yang
0ab678e9e2
Add unittest for network
9 years ago
Yu Yang
c14f3e8ff2
Merge branch 'develop' into feature/middle_level_net_api
9 years ago
Yu Yang
9e4fac1ef4
Complete Add Op
9 years ago
Yu Yang
684563660b
Init commit
9 years ago
Yu Yang
1294b3c53e
Expose Net to Python ( #2967 )
...
* Expose Net to Python
* Expose PlainNet to Python, make python can add_op, complete_add_op
* Provide a low level api to manipulate Net
* Unittest for Net::DebugString
9 years ago
qijun
06acd6d0cb
add unittest for some basic OpKernels
9 years ago
Qiao Longfei
2685765905
add cross-entropy-op ( #2965 )
...
* add cross-entropy-op
* add infershape and compute
* implement Infershape and compute of onehotcrossentropy op
9 years ago
livc
ea09edc991
pass precommit
9 years ago
Yu Yang
a98346f4cd
Add comment to `OpTestMeta` ( #2968 )
9 years ago
Qiao Longfei
e3b27d1998
Add sgd op ( #2950 )
...
* a simplest SGD op
9 years ago
Yu Yang
21baa94b04
Merge branch 'feature/expose_net_op' into feature/middle_level_net_api
9 years ago
Yu Yang
d52913401d
Merge pull request #2947 from reyoung/feature/add_op_test
...
Feature/add op test
9 years ago
Yu Yang
0380bfb3cf
Expose Net to Python
...
* Expose PlainNet to Python, make python can add_op, complete_add_op
* Provide a low level api to manipulate Net
* Unittest for Net::DebugString
9 years ago
Yu Yang
e8304bd92a
Merge pull request #2945 from reyoung/feature/grouped_ops
...
Skeleton Of fully connected operator
9 years ago
qingqing01
c1ebb3143f
Merge pull request #2785 from wanghaoshuang/voc_dataset
...
Add voc2012 dataset for image segment
9 years ago
Yu Yang
3402b6ad39
Add Unittest of add_two_op
9 years ago
Yu Yang
d3373c5b85
Skeleton Of fully connected operator
...
* Fc operator is a grouped operator, which combined by may internal
operators.
* InferShape & Run a FC operator in Python.
9 years ago
Yu Yang
a89c7ffa94
Make Tensor <--> Numpy interactive in tensor.h
...
* Follow review comments to seperate Tensor Numpy interactive methods in
tensor.h.
* Simplify logic for `CastToPyBufferImpl`, make it as one struct and in
details namespace.
* Remove `Scope` expose in Python, since it currently is useless.
* Remove some debug functions.
9 years ago
wanghaoshuang
ceb9a73aaa
fix import err
9 years ago
wanghaoshuang
b142a6b063
Merge branch 'develop' of https://github.com/paddlepaddle/paddle into voc_dataset
9 years ago
wanghaoshuang
302c4f11d1
rename voc_seg to voc2012
9 years ago
Yu Yang
bde90be71b
Read/Write a Tensor Python
...
Basically following
http://pybind11.readthedocs.io/en/stable/advanced/pycpp/numpy.html
* Use buffer protocol to return a view of Tensor. It can be cast to
numpy array in Python.
* Set a numpy array to a tensor.
9 years ago
Yu Yang
c78a5e5da2
Fix merge error before
9 years ago
Yu Yang
68f6ac011c
Merge branch 'develop' into feature/op_creation_methods
9 years ago
Yancey
83f263e6ec
Fix fetch record from master failed ( #2848 )
...
Fix fetch record from master
9 years ago
qingqing01
1032ef1893
Merge pull request #2907 from juliecbd/to_meet_cpplint
...
Change to meet cpplint style
9 years ago
dzhwinter
9b5adfa482
Merge pull request #2905 from dzhwinter/fix_mq2007
...
"fix dense vector shape in mq2007"
9 years ago
武毅
23b8346072
Fault tolerant distributed training, just work version, with etcd ( #2849 )
...
* using etcd as fault tolerant training
* update
* workable version, ft not tested
* small fix
* update
* remove TODO
9 years ago
jc
278f1a8499
fix calling swig_api before import
9 years ago
jc
02e56304c1
fix calling swig_api before import
9 years ago
dongzhihong
56fbed9a42
"fix dense vector shape in mq2007"
9 years ago
Yu Yang
9e0c6800c5
Python Generate OpCreation Methods by OpProto
...
All OpCreation method are generated by
`create_op_creation_methods::__bootstrap__` method, and stores in
`op_creations` object and its methods.
There are three parts to implement this feature.
1. Get all registered `OpProto` from C++ side. It is implemented in
`get_all_op_protos` method.
1. Create a function to convert `kwargs` to `OpDesc` base on each op's
`OpProto`. The `OpDescCreationMethod` class.
1. Convert `OpProto` to `docstring` by `get_docstring_from_op_proto`
method.
All three methods are unit tested. The `__bootstrap__` just combines
them together and create a method in runtime.
For details, please reference the doc string in
`create_op_creation_methods.py` and the unit test
`test_op_creation_methods.py`.
9 years ago
Yu Yang
d7405e1eaa
Fix a typo before
9 years ago
Yu Yang
a76f7ed2eb
Get OpProtos in Python
...
* PyBind and SWIG of paddle cannot be load in a single Python process,
lazy import all SWIG library of Paddle. Otherwise, the glog, gflags
are imported twice in a same Python process.
* Note that all PyBind11 return C++ std::string as an unicode. For
protobuf, it is need be cast to `str` before use them.
* Add unit test for Get `OpProtos`
9 years ago
Yu Yang
8da5587205
Init commit
9 years ago
Yu Yang
3c5cc6444c
Merge pull request #2808 from reyoung/feature/scope_default_wrapper
...
Default scope function
9 years ago
wanghaoshuang
4a5c3714ea
fix python dependency for voc2012 dataset
9 years ago
wanghaoshuang
1ba879bead
Use PIL to read image in palette mode
9 years ago
wanghaoshuang
c4f301ded7
Modify comments and fix code format.
9 years ago
wanghaoshuang
a5239ac7a5
Merge branch 'develop' of https://github.com/paddlepaddle/paddle into voc_dataset
9 years ago
武毅
bcf9f421c3
Merge pull request #2774 from typhoonzero/fix_newupdater
...
Fix new remote updater for go pserver
9 years ago
Yu Yang
d027f47d7d
Default scope function
...
`Paddle` manages Scope as programming language's scope. It just a
thread-local stack of Scope. Top of that stack is current scope, the
bottom of that stack is all scopes' parent.
Invoking `create_var/get_var` can `create/get` variable in current
scope. Invoking `enter_local_scope/leave_local_scope` can create or
destroy local scope.
A `scoped_function` will take a `function` as input. That function will
be invoked in a new local scope.
9 years ago
Yu Yang
27b196ba6d
Expose paddle.framework by pybind11 ( #2793 )
...
* Expose paddle.framework by pybind11
* Export paddle.framework.{Scope, Variable} to paddle.v2.framework.core.
* See python/paddle/v2/framework/tests/test_scope.py for Python usage
* See paddle/pybind/pybind.cc for C++ bind code.
* add copyright
9 years ago
yi.wu
5a4f33df7e
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into fix_newupdater
9 years ago
caoying03
68ec558c21
update the md5sum of WMT14 trained model.
9 years ago
whs
a698824a8a
Merge branch 'develop' into voc_dataset
9 years ago
wanghaoshuang
338dd13542
Add voc2012 dataset for image segment
9 years ago
wuyi05
26d95a6bbf
fix new remote updater for go pserver
9 years ago
gongweibao
8e8f3601a5
Merge pull request #2665 from gongweibao/cloudandlocal
...
Recordio cloud and local interface
9 years ago
Yu Yang
e2ea1f42e9
Generate python protobufs for paddle.v2.framework
...
Python should be able to manipulate Protobuf message because:
1. Python's `create_op_creation_methods` take the `OpProto` array to
generate all `op_creation_methods` in RunTime.
2. All `op_creation_methods` will create an `OpDesc` and pass it to
Paddle C++ method `CreateOp` and return the Op handle.
Here is the list of what is added in this commit:
* Add `protobuf_generate_python` if it is not defined.
* Before cmake 3.4, `protobuf_generate_python` is not defined. Just
copy the implementation of that function in `protobuf.cmake`
* Add `py_proto_compile` function in `cmake/generic.cmake`.
* It follows bazel's API interface.
* https://github.com/pubref/rules_protobuf#rules
* Add an empty package named `paddle.v2.framework`, all python code of
`paddle::framework` will be in that package.
* Generate protobuf's python module `__init__.py` by `touch` while
compiling.
* Change setup.py.in, make `paddle.v2.framework.proto` uses the
generated protobuf pythons.
9 years ago
gongweibao
421d9f12a3
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into cloudandlocal
9 years ago
gongweibao
e12d7269ff
fix by helin's comments
9 years ago
gongweibao
26e661bc51
fix by helin's comments
9 years ago
gongweibao
af5ac2c474
merge with upstream develop
9 years ago
dongzhihong
1d4f02ccd9
Merge remote-tracking branch 'origin/develop' into go_optimizer
9 years ago
dangqingqing
0925681543
fix typo.
9 years ago
dangqingqing
6a7f1212f5
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into row_conv_fix
9 years ago
dangqingqing
e287034d73
minus mean in flowers dataset.
9 years ago
dangqingqing
0c70f34c60
Fix bug for flowers dataset and row_conv.
9 years ago
dzhwinter
c38331315f
Merge branch 'develop' into go_optimizer
9 years ago
helinwang
fae606fc96
Merge pull request #2659 from helinwang/cmake
...
Improve Go cmake, add go/master/c into cmake include path..
9 years ago
dzhwinter
36f8b84809
Merge branch 'develop' into go_optimizer
9 years ago
gongweibao
b3c5808e13
rm cloud EOF
9 years ago
gongweibao
5b2f9939c2
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into fixdownloadbug
9 years ago
Helin Wang
59cf5e7796
Fix Go cmake
9 years ago
gongweibao
b79784ee9e
fix bugs
9 years ago
gongweibao
0fa409246b
fix bugs
9 years ago
qingqing01
aaee28bf63
Merge pull request #2664 from qingqing01/from_tar
...
Init partial network parameters from another saved model.
9 years ago
dangqingqing
23d6c594ec
add comments
9 years ago
gongweibao
4874810ba5
fix bugs
9 years ago
dangqingqing
11a8dfe78e
Use Parameters.from_tar for static method.
9 years ago
gongweibao
48fdfd5a03
fix bugs
9 years ago
gongweibao
fc3d031425
first add
9 years ago
dangqingqing
c9865824a7
Support to init partial network parameters from the tar file.
9 years ago
wanghaoshuang
01f44bff66
rename args and add comments
...
1. rename 'useXmap' to 'use_xmap'
2. add comments about exchanging train data and test data
9 years ago
wanghaoshuang
80642bee00
fix_xmap and refine flowers dataset
9 years ago
gongweibao
a489a54de0
fix style
9 years ago
gongweibao
0990b0a5d4
add testdata
9 years ago
gongweibao
e4c7d8cc2b
Merge branch 'develop' into recordio
9 years ago
Your Name
b9d015cbc4
rm not need
9 years ago
Your Name
a243bdfbcf
rm not need
9 years ago
Your Name
e915aa9cf1
fix bugs
9 years ago
root
97270b9f27
add convert function
9 years ago
gongweibao
9f9058ac49
Merge remote-tracking branch 'upstream/develop' into develop
9 years ago
zlx
561c4562cf
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into improve_pruning
9 years ago
gongweibao
8d47690132
Merge remote-tracking branch 'upstream/develop' into develop
9 years ago
Cao Ying
6fa84d40f4
Merge pull request #2521 from emailweixu/fix_rnn_gen
...
Fix bugs for rnn generation.
9 years ago
dzhwinter
1f217f0ab3
"add c testing, python testing TODO"
9 years ago
zlx
43771ad41d
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into improve_pruning
9 years ago
gongweibao
0adb9e01e9
fix bugs
9 years ago
gongweibao
8bffa4a72f
fix bugs
9 years ago
Yi Wang
65aa894142
Merge pull request #2540 from wangkuiyi/check_for_existence_of_data_home
...
Handle multiple processes trying to create the data home directory
9 years ago
wanghaoshuang
d322c94243
fix unittest
9 years ago
wanghaoshuang
cadea35a10
format code
9 years ago
wanghaoshuang
09cc4408e5
modified xmap reader to process sample by order
9 years ago