Huihuang Zheng
14672a6364
Add Basic Node Var Type Analysis ( #22603 )
...
1. Move AstNodeWrapper, StaticAnalysisVisitor to a new python file: static_analysis.py
2. Add basic node var type analysis
6 years ago
bingyanghuang
6abeb5c54d
fix ernie accuracy doc ( #22671 )
6 years ago
songyouwei
0aee43005a
Linear use mul op ( #22662 )
...
* Linear use mul op
test=develop
* fix unittest
test=develop
6 years ago
HappyAngel
df144e2188
add no_check_list for no_grad_set rule ( #22571 )
6 years ago
lidanqing
d926214535
[UT coverage] improve the mul_mkldnn_op line coverage ( #22408 )
...
* improve the mul_mkldnn_op line coverage
test=develop
* remove fp32 mul mkldnn kernel
test=develop
* locally refactoring
test=develop
* change according to reviews
test=develop
6 years ago
wangchaochaohu
c65c6ae534
add flag to control profile level in python API ( #22319 )
...
* add python flag to control profile level test=develop
6 years ago
Wojciech Uss
fce37bc593
Doc update with Ernie QAT INT8 benchmarking ( #22519 )
...
* Doc update with Ernie QAT INT8 benchmarking
test=develop
* fixes after review
test=develop
* remove ernie part, test=develop test=document_fix
* Fix model name for qatv2
test=develop test=document_fix
* Add Ernie data
test=develop test=document_fix
* update ERNIE benchmark with baidu QA results, test=develop test=document_fix
Co-authored-by: bingyanghuang <33643817+bingyanghuang@users.noreply.github.com>
Co-authored-by: Michał Gallus <sand3r@interia.eu>
6 years ago
liym27
17a6b50fe3
support num_flatten_dims=-1 of API fc. ( #22634 )
...
* support num_flatten_dims=-1 of API fc. test=develop
* fix name of class Test* and add CUDAPlace test. test=develop
6 years ago
Aurelius84
8b41e2b3d1
add gast to replace ast test=develop ( #22630 )
6 years ago
123malin
00594c1c88
support dumping params/grads in transpiler mode ( #22490 )
6 years ago
zhouwei25
d86007775f
fix py_func bug when out is list and add unittest case ( #22595 )
6 years ago
songyouwei
d9f0c9f51c
support set param with None value ( #22418 )
...
* support reset param with None value
* add unittest
test=develop
* update unittest
test=develop
6 years ago
Chen Weihang
192110725a
Add Queue.get delay for multiprocess data loader ( #22604 )
...
* add get delay for multiprocess data loader, test=develop
* add unittest for coverage ci, test=develop
* add timeout unittest, test=develop
* increase the delay time, test=develop
6 years ago
Kaipeng Deng
f5db451d3b
fix compute priority. test=develop ( #22619 )
6 years ago
Jiawei Wang
8f035fb637
Add TopK Op Grad CPU&GPU Kernel test=develop ( #22628 )
...
* Add TopK Op Grad CPU&GPU Kernel test=develop
* Add TopK Op Grad, modify grad op maker test=develop
* Add TopK Op Grad, modify grad op maker test=develop
* Add TopK Op Grad, modify PADDLE_ENFORCE test=develop
* Add TopK Op Grad, modify PADDLE_THROW test=develop
* Add TopK Op Grad, modify unittest test=develop
* fix ngraph top k op unittest test=develop
7 years ago
xiaoting
3f0ca61a82
fix noam decay example, test=develop,test=document_fix ( #22557 )
7 years ago
guofei
9ed59da443
Modify english document and unittest of while_loop ( #22615 )
...
Modify english document and unittest of while_loop
7 years ago
Chen Weihang
fc645d8a47
Fix data loader test failed problem in release 1.7 ( #22624 )
...
* split unittests in data loader test, test=release/1.7
* split unittests to different files, test=develop
* remove repeat unittest, test=develop
7 years ago
123malin
e59463efc7
test=develop, add distributed tools ( #22623 )
7 years ago
tangwei12
1aab3e61c9
add texttable for pretty flag output ( #22584 )
...
pretty print for communicator flag
7 years ago
songyouwei
b768708e5d
fix pickle load encoding between python 2 and 3 ( #22621 )
...
test=develop
7 years ago
songyouwei
cb4560b79d
python 2 and 3 compatible pickle ( #22555 )
...
test=develop
7 years ago
Steffy-zxf
90ee366653
update ops's unittest data type from float32 to float64 and shape over 100 ( #22544 )
...
* update ops's unittest of elementwise_pow, elementwise_max, elementwise_min, scale and sqrt
1. update elementwise_pow, elementwise_max and scale's unitests with input data type (float32 -> float64)
2. fix bug that the elementwise_pow doesn't meet threshold requirements with tackling float64 data
3. remove sqrt from op_accuracy_white_list.py
4. update the unittests of elementwise_pow, elementwise_max and elementwise_min ops that their input data shape over 100
5. test=develop
* modify the writing style according suggestions
test=develop
7 years ago
Kaipeng Deng
57de4842e6
optimizer var exlcude fluid.data var. test=develop ( #22594 )
7 years ago
tangwei12
948299aec8
deprecated for distribute transpiler api ( #22513 )
...
* add deprecated for distribute transpiler, will delete it after 2.0.0, test=develop
7 years ago
Chen Weihang
ec90742708
Adjust sleep time of main process in signal handler test ( #22597 )
7 years ago
guofei
614a2a4f98
modify English document while_loop ( #22573 )
...
As the title.
7 years ago
FDInSky
e28833a80e
Fix doc of detection's img_info param ( #22458 )
...
* test=develop fix doc of detection's img_info param
7 years ago
hong
6980239632
Enhance load program state ( #22546 )
...
* enhance load program state; test=develop
* optimize commet; test=develop
7 years ago
Zhaolong Xing
8acd745c25
[Ernie GPU Optim]: Fuse three fc to multihtead matmul ( #22486 )
...
* 1. optim multihead matmul: fuse three fc to multihtead matmul
test=develop
* fix conflict
test=develop
* fix comments
test=develop
7 years ago
Huihuang Zheng
a8dd425aa3
Add Static Analysis to Construct AstNodeWrapper ( #22569 )
...
As the title
7 years ago
joanna.wozna.intel
146ed4099d
Add test with reused requantize op ( #22482 )
...
test=develop
7 years ago
Zeng Jinle
08033c8634
fix traced layer with non persistable vars, test=develop ( #22552 )
7 years ago
Guo Sheng
31b5464632
Add support for dynamic_decode(while) training. ( #22231 )
...
* Add support for dynamic_decode(while) training. test=develop
* Fix assign_op and tensor_array_read_write_op after solving conflict. test=develop
* Fix test_rnn_decode_api.py. test=develop
* Refine docs for apis in rnn.py. test=develop
* Adjust outputs of dynamic_decode. test=develop
* Remove the force_cpu update in assign_op. test=develop
* Remove the force_cpu update in assign_op. test=develop
* Make RNNCell.get_initial_states support batch_dim_idx argument. test=develop
* Rename _create_array_outof_while as _create_array_out_of_while in rnn.py.
test=develop
7 years ago
tangwei12
b0675c8193
fix bug with compiledProgram ( #22495 )
...
* add thread barrier for the compiled program
7 years ago
Wojciech Uss
4cddb43c5c
Add support for Ernie NLP model to the Slim QAT ( #22506 )
...
* a test for Ernie QAT INT8 accuracy check
test=develop
* Remove NLP comparison test to split PRs
test=develop
* Fix typo and tabs, delete commented lines
test=develop
* re-combine the 2 PRs, test=develop
Co-authored-by: Michał Gallus <sand3r@interia.eu>
Co-authored-by: bingyanghuang <33643817+bingyanghuang@users.noreply.github.com>
7 years ago
Double_V
58d99247f4
support slice double grad, test=develop ( #22166 )
...
* support slice double grad, test=develop
* merge two doublegradopmaker to one doublegradopmaker,test=develop
* change the shape of slice_OP's unittest, test=develop
7 years ago
huzhiqiang
9e29d3ebed
【OpPorting Example】DEMO OF FIX COMPILE&RUNTIME LOD_EQUALITY ( #22460 )
7 years ago
littletomatodonkey
00c110f3ff
Fix bilinear import math ( #22523 )
7 years ago
WangXi
d69df9bf26
Add wrong info when use DGC in cpu ( #22515 )
7 years ago
yaoxuefeng
2235ee1a5e
multi-loss optimization by adding a DownpourOpt worker ( #22025 )
...
* update
* update test=develop
* update compile set test=develop
* update compile set test=develop
* update test=develop
* update test=develop
* update test=develop
* update compile setting test=develop
* update compile setting test=develop
* update run demo test=develop
* update test=develop
* update test=develop
* fix test=develop
* update test=develop
* update test=develop
* update test=develop
* update test=develop
* update test=develop
* update test=develop
* update test=develop
* update test=develop
* update test=develop
* update format test=develop
* update format test=develop
* update style test=develop
* update style test=develop
* change style test=develop
* change style test=develop
* change style test=develop
* add dataset unittest test=develop
* update test=develop
* update for record test=develop
* udpate style for record test=develop
* update for record test=develop
* update for record test=develop
* update for record test=develop
* fix format test=develop
* update test=develop
* update test=develop
* update test=develop
* update test=develop
* update test=develop
7 years ago
zhaoyuchen2018
54970444ce
Improve transpose performance with tile sm copy, test=develop ( #22311 )
...
* Refine code, fix select tile error,test=develop
* Refine element type and some comments, test=develop
* Refine comments and gpu utils, test=develop
* Remove some useless condition
* Refine floor and ceil, test=develop
* refine for loop. test=develop
Signed-off-by: zhaoyuchen <zhaoyuchen01@baidu.com>
7 years ago
guofei
3a59a7a11f
Make assign op support LoDTensorArray and modify while_loop API ( #22309 )
...
This PR makes assign op support LoDTensorArray and enable the loop_vars in
while_loop to support tuple or list.
7 years ago
liu zhengxi
14b6133b45
Implement InferencePassTest for testing precision of inference passes ( #22387 )
...
* add InterencePassTest for testing precision of inference passes, test=develop
7 years ago
Guo Sheng
e7bbad6c49
Fix the leaving out of rnn_memory_helper_grad's output vars. test=develop ( #22499 )
7 years ago
cc
d143f70a09
Post_training_quantization support set quant 8/16 bits ( #22492 )
...
* post_training_quantization support set bits, test=develop
* up, test=develop
7 years ago
Wilber
870f465887
fix test_fusion_seqpool_concat lod level between compile and runtime ( #22488 )
7 years ago
Huihuang Zheng
903039a3c6
Add Simple Framework for Transforming Dygraph to Static Graph ( #22491 )
...
This PR provides very basic and simple framework for transforming Dygraph to Static Graph.
API names, final outputs are not determined yet. Feel free to modify or add class/function/type when you think the framework is not extendable for you.
7 years ago
cc
197913ebe1
Add weight quantization in post_training_quanzitaion ( #22445 )
...
* support weight quantization in post_training_quanzitaion, test=develop
* add test for weight quantization, test=develop
7 years ago
Yiqun Liu
dcfb603897
Enable the detection of subgraph composed of grad ops ( #21223 )
...
* Add the first implememtation of fusion_group op #19621 (#3 )
* Add the dynamic load of nvrtc, and support runtime compiling of CUDA kernel using nvrtc.
test=develop
* Call CUDA driver api to launch the kernel compiled by nvrtc.
test=develop
* Disable for mac and windows.
test=develop
* Refine the codes to support manually specified num_threads and workload_per_thread.
test=develop
* Refine the CUDA kernel to support large dims.
test=develop
* Add DeviceCodePool to manage all device codes.
* Add the first implementation fusion_group op.
* Add unit-test for fusion_group op.
* Add the check of result.
* Add the check of nvrtc in unit-test.
test=develop
* Add comment to explain the inputs, outputs and features of fusion_group op.
test=develop
* Disable fusion_group op for mac and windows.
test=develop
* Make the compiling of device code return status instead of hanging up.
test=develop
* Add the check of whether there is CUDA driver library, and do not core dump when failing to call the CUDA driver API.
* Unify fusion_group_op's input and output names.
test=develop
* Add the check of CUDA driver library in unittest.
test=develop
* Enable generating code for a given subgraph. #21126 (#4 )
* Enable generating code for a given subgraph.
* Support sorting the subgraph.
* Remove the rearange of expressions because we use the sorted subgraph directly.
* Enable generating code for a subgraph which is composed of grad ops.
* Use expression information to check the accuracy in unittest.
* Separate load and store from computation expressions.
test=develop
* Improve the loading statements in generated codes.
test=develop
* Remove unused arguments from formal list.
test=develop
* Enable the detection of subgraph of grad ops.
* Generate code for detected subgraph in fusion_group_pass.
* Add an option in BuildStrategy to enable fusion_group_pass and add unittest.
test=develop
* Fix a bug when checking whether the shape of all inputs are the same.
* Add debug information.
* Remove subgraph_detector from inference/analysis to the common framework/ir directory. (#5 )
test=develop
* Call subgraph_detector in fusion_group pass.
test=develop
* Disable fusion_group when WITH_GPU is OFF.
test=develop
* Refine all PADDLE_ENFORCE message.
test=develop
* Fix the case that some inputs are not defined in grad ops, and set op_role for fused op.
test=develop
* Follow review comments.
test=develop
7 years ago
Aurelius84
50af6b5d79
polish no_grad_set of gradient and append_backward ( #22440 )
...
* polish backward api doc test=develop, test=document_preview,
test=document_fix
* polish backward api doc test=develop, test=document_preview, test=document_fix
* no_grad supports set of Variable test=develop, test=document_preview
* polish sample code of append_backward test=develop, test=document_preview
* modify assert into Raise TypeError test=develop,test=document_preview
* fix unittest failed test=develop
* rm useless file test=develop
* polish en doc test=develop
* polish code of no_grad_set test=develop
* polish code of no_grad_set test=develop
7 years ago
Tao Luo
6b7bb6b54a
change check_type_and_dtype to check_variable_and_dtype ( #22465 )
7 years ago
Aurelius84
c2f39431aa
add skip_check_grad_ci of var_conv_2d ( #22451 )
...
* add skip_check_grad_ci of var_conv_2d test=develop
* modify check_shape_white_list test=develop
7 years ago
Wilber
7bc4b09500
add WITH_NCCL option for cmake. ( #22384 )
...
cmake选项中添加了WITH_NCCL,显示指定是否编译NCCL的部分代码,WITH_NCCL默认打开,但如果WITH_GPU为OFF,则关闭WITH_NCCL
添加了PADDLE_WITH_NCCL定义
单机单卡能够关闭NCCL编译,多卡的话需要默认打开NCCL,如果关闭NCCL,则只能使用单卡
Co-authored-by: 石晓伟 <39303645+Shixiaowei02@users.noreply.github.com>
7 years ago
Bai Yifan
c8b90d8f9a
fix deformable_conv small cases, test=develop ( #22441 )
7 years ago
xujiaqi01
6e4f39a061
add hdfs ls retry time and sleep time, fix save inference ( #22433 )
...
* add hdfs ls retry time and sleep time, fix save inference
* test=develop
7 years ago
Leo Chen
822e5b36ec
Support int16 for Tensor ( #22423 )
...
* add int16 support, test=develop
* add test, test=develop
* fix typo, test=develop
* fix dtype error in slice, test=develop
7 years ago
juncaipeng
0a678ca045
fix chain doc, test=develop, test=document_preview ( #22070 )
...
* fix chain doc, test=develop, test=document_preview
7 years ago
tangwei12
7e2665c58b
fix bug with half ( #22378 )
...
* fix bug with half communicator
7 years ago
liu zhengxi
0404e7a985
Update the precision of pad, pad2d, pad_constant_like's unit tests from fp32 to fp64 ( #22394 )
...
* update the ut precision of pad pad2d pad_constant_like from fp32 to fp64, test=develop
7 years ago
xujiaqi01
371f377bea
add GeneralRoleMaker ( #22295 )
...
* add GeneralRoleMaker which is for general usage
* test=develop
7 years ago
lidanqing
ade5022681
[UT Coverage]Improve sum_mkldnn_op line coverage ( #22275 )
7 years ago
joanna.wozna.intel
3099d9d47c
Restore requantize squash ( #22399 )
7 years ago
Wojciech Uss
92462e948d
improve elementwise_add_mkldnn_op test code coverage ( #22359 )
7 years ago
wangchaochaohu
e6ca512af1
refine convert type for numpy type ( #22386 )
7 years ago
lilong12
6d325a9470
enable test_dist_se_resnext_nccl.py, test=develop ( #22067 )
7 years ago
石晓伟
a392b77785
add no_grad_set value check in op_test, test=develop ( #22370 )
...
* add no_grad_set value check in op_test, test=develop
* update ops list, test=develop
7 years ago
Chengmo
8f36c39537
Fix GEO-SGD init & send Bug ( #22375 )
...
* test=develop, fix geo Send & Init
7 years ago
songyouwei
39bdefd875
open depthwise_conv2d in dygraph ( #22373 )
...
test=develop
7 years ago
gongweibao
ad2bc0c364
Fix a distribution bug and cleanup some not need logs. ( #22381 )
7 years ago
juncaipeng
7b0692a610
remove skip_check in test_activation_mkldnn_op, test=develop ( #22376 )
...
* remove skip_check in test_activation_mkldnn_op, test=develop
7 years ago
whs
5f655d2cef
Refine unitest im2seq op. ( #22372 )
7 years ago
Zeng Jinle
039bb5050c
Polish backward.py to prune more ops ( #22246 )
...
* polish backward prune, test=develop
* fix control flow op bug, test=develop
* add some unittests, test=develop
* fix unittest args, test=develop
* follow huihuang's comments, test=develop
7 years ago
Zeng Jinle
26da700ab2
Fix static graph dataloader early reset bug ( #22365 )
...
* fix dataloader early reset bug, test=develop
* change implementation, test=develop
* fix ut, test=develop
7 years ago
zhupengyang
c6f888e5a5
update unittest accuracy to float64 for relu, prelu, maxout ( #22273 )
7 years ago
juncaipeng
325f0722bd
skip all mkldnn op test ( #22363 )
7 years ago
Chengmo
a22aaf7078
test=develop, fix test dist fleet geo unittest ( #22287 )
...
fix timeout of test_dist_fleet_geo
7 years ago
Yiqun Liu
b7cac50b64
Implement a common python unittest to test the ir passes. ( #22209 )
...
* Implement a common python unittest to test the ir passes.
test=develop
* Save the results in np.array and support to startup on CPU.
test=develop
* Fix the unittest.
test=develop
* Add check_program to check whether the optimized program is different from the origin one.
test=develop
* Remove the inferface all_ops.
test=develop
* Add exception test in pass_test.
test=develop
7 years ago
songyouwei
99f5907e02
Fix layer & dygraph circular dependent ( #22334 )
...
* fix circular dependent
* try import layers.nn from dygraph
test=develop
7 years ago
songyouwei
4dec15999f
Allow Layer attr shadow ( #22333 )
...
* allow sublayer or param shadow attrs
* add unittest
test=develop
* change remove fn name
test=develop
7 years ago
zhupengyang
cf0e264e63
all cases use large shape and skip special cases ( #22332 )
7 years ago
tangwei12
82bc814a57
integrated HALF_ASYNC to communicator ( #21869 )
...
* add half_async in the communicator
* fix DistributedStrategy
7 years ago
hong
00c0139e6e
add learning rate api of optimizer ( #22080 )
...
* add learning rate api; test=develop
* fix uni test converage; test=develop
* fix travis ci error; test=develop
* fix comment; test=develop
* fix example error; test=develop
* polish the api description, test=develop
Co-authored-by: zhongpu <2013000149@qq.com>
7 years ago
Li Fuchen
51e147a130
fix the en doc and example code of warpctc ( #22325 )
...
* Fixed warpctc, test=develop
* Set lod level of sequence_unpad's output to 1 in compile time
test=develop
* fix the en doc and example code of warpctc, test=develop, test=document_fix
7 years ago
zhangchunle
805328e13b
fix typo in error message ( #22312 )
7 years ago
juncaipeng
b339dff231
fix use cache file, test=develop ( #22240 )
7 years ago
zhupengyang
cb5e0d20c2
skip cases with small shape ( #22318 )
7 years ago
zhongpu
b1c081f4c7
polish Optimizer's API description, test=develop ( #22314 )
7 years ago
hong
008ea1ae2e
Fix test layers 单测随机挂问题 ( #22278 )
...
* fix test_layers compare static graph and dygraph result; test=develop
* fix test_layers random error; test=develop
7 years ago
Chen Weihang
35efbe6d95
Speeding up dygraph DataLoader with multiprocessing ( #21762 )
...
* add multiprocess for dygraph data loader, test=develop
* polish code & add safe gurad, test=develop
* refactor dygraph dataloader & add signal handler, test=develop
* fix member initializer compile error on ci, test=develop
* fix member initializer compile error one more, test=develop
* remove useless config, test=develop
* skip windows incompatible problem, test=develop
* add unittest for coverage, test=coverage
* add more exception unittest case, test=develop
* deal with signal handler coverage, test=develop
* polish code & add signal handler tests, test=develop
* deal with coverage ci problem, test=develop
* split data loader test & coverage ci fix, test=develop
* remove test_imperative_data_loader_with_exception, test=develop
* remove singal process except test case, test=develop
* add exception tests again & remove sample list test, test=develop
* split normal and exception unittests to diff class, test=develop
* polish doc for use_multiprocess effect in static mode, test=develop
7 years ago
zhupengyang
7ab44afbcc
check op tests' shape should be 100+ ( #22047 )
7 years ago
juncaipeng
8f7372ca81
add mul and matmul quantization, test=develop ( #22054 )
...
* add mul and matmul quantization, test=develop
* add test for matmul, test=develop
7 years ago
hong
737334989b
State dict do not count data parallel layers ( #22169 )
...
* DataParallel state dict don't include _layers.; test=develop
* add unitest of data parallel; test=develop
* add load state test; test=develop
7 years ago
Aurelius84
60a6d68fb9
remove _optimized_guard in dygrahpe_mode ( #22143 )
...
* remove _optimized_guard in dygrahpe_mode test=develop
* remove comment code test=develop
* remove list append test=develop
* remove list append test=develop
7 years ago
Aurelius84
a2603c5bf4
Remove _optimized_guard of append_regularization_ops in Dgraph mode ( #22271 )
...
* polish regularization test=develop
* add comment of function test=develop
* rm name_scope in dygraph mode test=develop
7 years ago
Bai Yifan
faba4b116a
Remove disable flag in test_fsp_op.py ( #22171 )
...
* fix fsp_op, test=develop
* fix fsp grad op maker, test=develop
* update op_use_default_grad_op_maker.spec, test=develop
7 years ago
juncaipeng
67e9247f4c
Make every op in a line to avoid conflict in the future ( #22274 )
7 years ago
songyouwei
4bf2ccaa52
fix save_dygraph & save with nonexistent dir ( #22266 )
...
* fix save_dygraph with nonexistent dir
test=develop
* minor fix
test=develop
* fix unittest
test=develop
* fix static save
test=develop
7 years ago
zhongpu
9a7245de0e
fix optest of check_dygraph=False, test=develop ( #22283 )
7 years ago
Bai Yifan
a46bb2e6ab
Fix slim log format, test=develop ( #22281 )
7 years ago
danleifeng
f56e07492c
edit useless code;test=develop ( #22276 )
7 years ago
zhongpu
e31f8a2f5e
add CI check for sequence ops' unittests ( #22221 )
7 years ago
danleifeng
f5262865c0
change select_gpus into absolute values in launch.py ( #22031 )
7 years ago
zhupengyang
2b619493e2
all cases use large shape ( #22241 )
...
enhanced ops: concat, nearest_interp, deformable_conv_v1, sequence_conv, transpose2, conv2d
7 years ago
Leo Chen
d4bdbf8cf0
Polish nn code, test=develop ( #22237 )
...
* refine code, test=develop
* reuse contain_var, test=develop
7 years ago
Chen Weihang
efcdeb512f
Add all_parameters api for Program ( #22180 )
...
* add all_parameters for Program, test=develop
* refine unittest, test=develop
* add example print result, test=develop
7 years ago
liym27
d90c121534
Revert "open test_parallel_executor_fetch_feed for PR_Windows_CI. test=develop ( #22020 )" ( #22253 )
...
This reverts commit c7b03d308c .
7 years ago
juncaipeng
05ee05e248
no fp64 check for mkldnn op test, test=develop ( #22217 )
7 years ago
Zhen Wang
f2522e91c4
fix the type error caused by setting bool attr in OpDesc. test=develop ( #22257 )
7 years ago
songyouwei
0ba1d140d4
Add CI check for sequence ops' unittests ( #21615 )
7 years ago
123malin
985bceac53
Bug fix for sparse recorder ( #21969 )
...
* test=develop, bug fix for sparse recorder
7 years ago
zhongpu
7e2af4c91f
modify sequence_pool optest apply get_sequence_instance_size_0_input, test=develop ( #22214 )
7 years ago
Zhang Ting
e18a737506
only import used test case and function( #22208 )
7 years ago
hong
6e04334cec
Check dygraph weight name ( #22140 )
...
* add parameter check; test=develop
* change parameter name checker in dygraph guard; test=develop
* fix test layers error; test=develop
* revert some code to develop; test=develop
* fix exampel error; test=develop
* fix comment error; test=develop
* fix comment error; test=develop
7 years ago
zhongpu
6882b8ebfa
fix bug fot test_dygraph_mnist_fp16.py, test=develop ( #22222 )
7 years ago
liym27
8de33f4197
add NotImplementedError for multi optimizers ( #22181 )
...
* add NotImplementedError for multi optimizers used on multi-places . test=develop
* assert error only if num_devices>1. test=develop
* set test_optimizer_in_control_flow in CMakeLists for using multi-GPU.test=develop
7 years ago
FlyingQianMM
443a713c9e
add backward gradient computation for op argsort ( #22203 )
...
* add backward gradient computation for op argsort test=developo
* use pre-commit test=develop
7 years ago
Zhen Wang
46189b166d
Add bn and relu fuse pass ( #22048 )
...
* add bn and relu fuse pass
* add op attr assert and dtype assert
* fix some inputs&&outputs bugs for the fused op and pattern.
* add the unittest for fuse_bn_act_pass. test=develop
* use normative enforce statements. test=develop
* add the cpu test. test=develop
* add the support of batch_size=1 for the bn with relu op. test=develop
* add the error type for paddle throws. test=develop
* add fused_batch_norm_act and fused_batch_norm_act_grad to op_has_unsed_vars_white_list. test=develop
7 years ago
songyouwei
0d82baf837
add batch_size_1_input data function for sequence ops unittests ( #22172 )
7 years ago
Chen Weihang
8bed352278
Polish executor empty program hint message ( #22167 )
...
* polish executor hint message, test=develop
* fix punctuation error, test=develop
7 years ago
baojun
298ee7d28a
Improve ngraph file line coverage ( #22155 )
7 years ago
zhongpu
d0f0a2520c
test Optimizer in dygraph ( #21949 )
...
* test Optimizer in dygraph, test=develop
* add optest for Optimizer in dygraph, test=develop
* fix adagrad optimizer, test=develop
* fix dpsgd optimizer, test=develop
* fix test_optimizer.py, test=develop
* fix dpsgd optimizer, this op only support cpu, test=develop
* add optest for optimizer, test=develop
* add description for dpsgd, test=develop
* add rmsprop to white_list in unused_var_check.cc, test=develop
* polish code style, test=develop
* polish code style, test=develop
* delete seed attribute for DpsgdOptimizer, test=develop
* change testing to debugging, test=develop
7 years ago
songyouwei
83037e55ca
named_sublayers and named_parameters ( #21868 )
...
* use snake_cased Layer name
* add named_parameters and named_sublayers api
* add include_sublayers param, add unittest
test=develop
* fix named unittests
test=develop
* fix unittest
test=develop
* add api docs
test=develop
* arg fix
test=develop
* reserve rnn_impl name_scope for static graph
test=develop
* fix load static param
test=develop
* fix load static param
test=develop
7 years ago
zhongpu
7d10edc5ee
add clear_gradients for Optimizer and add clear_gradients api description ( #21948 )
...
* add clear_gradients for Optimizer, add api description, test=develop
* fix optest for optimizer's clear_gradient interface, test=develop
* add sample code, test=develop
* polish sample code, test=develop
7 years ago
Leo Chen
51cb918a05
update layers used in transformer dygraph model, test=develop ( #22051 )
...
* update layers, test=develop
* update layers for resnet, test=develop
* fix is_test attr, test=develop
* update cycle_gan, test=develop
* update reinforcement_learning, test=develop
* update ocr, test=develop
* fix bug, test=develop
7 years ago
songyouwei
1ae3f47f59
update PRelu arg ( #21946 )
...
* update PRelu arg
test=develop
* fix unittests
test=develop
* fix element mode alpha shape
test=develop
* split channel_or_input_shape arg
test=develop
* fix unittest
test=develop
7 years ago
Chen Weihang
8b29fec7ad
open test dygraph mnist fp16, test=develop ( #22163 )
7 years ago
Zhang Ting
e587bc62f9
remove useless code, test=develop ( #22111 )
7 years ago
Zeng Jinle
c3bcd3c1e2
fix dygraph non zero gpu bug, test=develop ( #22165 )
7 years ago
Double_V
cfb0c12ef9
fix grad diff over limit when the data type of input is double,test=develop ( #22161 )
7 years ago
mapingshuo
ccac636d5e
add example for reshape op ( #22129 )
...
* add example for reshape op
7 years ago
gongweibao
5e07db15e6
fix init scaling value test=develop ( #22145 )
7 years ago
zhongpu
cf475f95df
Remove FC in dygraph, modify FC to Linear in sample code ( #22082 )
...
* modify fc to linear in sample code, test=develop
* remove FC, test=develop
* remove warnings, test=develop
* drop fluid/imperative/README.md , test=develop
* change fc to linear, test=develop
* polish code style, test=develop
7 years ago
Double_V
6ea3809143
Support prroi_pool_op with Tensor and LoDTensor rois ( #20649 )
...
1. Add a new input named batch_roi_nums for prroi_pool_op. batch_roi_nums includes the number of roi for each image in batch when rois is Tensor. This information is saved in rois's lod when rois is LoDTensor.
2. add grad check to prroi_pool_op and solve unnormal X grad diff in CPU.
7 years ago
juncaipeng
bde7ee97f7
Use unified threshold in all op test ( #21814 )
...
* modify test framework, test=develop
* fix test_fsp_op, test=develop
* up, test=develop
* up, test=develop
* up, test=develop
* add check for threshold, test=develop
* up, test=develop
* up, test=develop
* up, test=develop
* up, test=develop
* up, test=develop
* up, test=develop
* up, test=develop
* update, test=develop
* update, test=develop
* update, test=develop
7 years ago
songyouwei
d0406193e3
LayerList add sublayer none check ( #22135 )
...
test=develop
7 years ago
zhupengyang
f2f913073f
all cases use large shape ( #22102 )
...
enhanced ops: acos, asin, brelu, ceil, cos, elu, floor, hard_shrink,
hard_sigmoid, hard_swish, relu6, round, rsqrt, sin, softshrink,
cos_sim, cross_entropy, im2squence, kldiv_loss
7 years ago
hong
9f7d90d203
Load inference enhance ( #21919 )
...
* enhance load interface; test=develop
* add uni test and add comment; test=develop
* fix converage; test=develop
* use path.joint replace "/"; test=develop
* windows debug; test=develop
* fix window unitest error; test=develop
* fix commet error; test=develop
* add model shuffix check; test=develop
* fix example error; test=develop
7 years ago
hong
2f49cf70f7
Support dygraph structuerd name ( #21930 )
...
* support dygraph structured name; test=develop
* add load static param unitest and fix save load; test=develop
* fix varBase import error; test=develop
* fix unitest error; test=develop
* add comment for parameter; test=develop
* fix uni test error; test=develop
* change parallel se-resnet; test=develop
* fix dygraph se resnext parallel test; test=develop
* remove useless code; test=develop
* remove useless code; test=develop
7 years ago
Double_V
b9a6354710
Solve elu unitest fail ( #22123 )
...
* set esp as 1e-6 to solve elu unitest fail,test=develop
7 years ago
Chengmo
418abc92f4
Update pyramid related OP ( #21372 )
...
* add special way to add distribute vars, Update Pyramid hash op
7 years ago
zhongpu
3b84584eb4
fix Variable's gradient api in framework.py, test=develop ( #21577 )
...
* fix Variable's gradient api in framework.py, test=develop
* remove namescope, test=develop
7 years ago
Yibing Liu
434f7b9c0f
Fix the global_step & continuous applying error in EMA ( #22090 )
...
* Fix the global_step & continuous applying error in EMA
test=develop
* Fix for step 0 & add unit test, test=develop
7 years ago
zhupengyang
5de6a1913b
fix test_bilinear_tensor_product_op timeout ( #22120 )
7 years ago
liym27
de56887bef
add Note in the doc of old control flow ops. test=develop,test=document_fix ( #22108 )
7 years ago
Chengmo
5c33919328
Fix grad clip ( #21784 )
...
* fix grad clip, clip op belongs to Backward op when running in Parameter Server mode.
7 years ago
Feiyu Chan
14aebc7a95
add erf op ( #21785 )
...
* add erf op and python interface.
* add fp16 support for erf op.
* add unitests for erf op and its python interface.
7 years ago
WangXi
f385c34107
fix fleet collective api run on cpu, test=develop ( #22064 )
7 years ago
zhupengyang
cce9af0e2b
all cases use large shape ( #22106 )
...
enhanced ops: conv2d, conv3d
elementwise_pow: change to a reasonable shape
7 years ago
Double_V
fab4b0765a
support elu_op double grad ( #21822 )
...
* support elu activation double grad,test=develop
* delete the code commit in .cc,test=develop
* fix relu test unpass, test=develop
* add elu double grad kernel and unit test
* add caculate dX in elu double grad functor, test=develop
* update the commit code,test=develop
7 years ago
Jacek Czaja
b0b27ff699
[MKL-DNN] Conv grad and Batch Norm grad NHWC support ( #22088 )
7 years ago
Huihuang Zheng
1ce6ab9cc6
Refine doc of data based on requirement. ( #22098 )
7 years ago
Huihuang Zheng
dd4361568e
Add ParallelExecutor Test for Cond API and Fix PE Checks Shape Bug ( #22029 )
7 years ago
songyouwei
2a47cc5fc4
dygraph LayerList container ( #21734 )
...
* add dygraph LayerList
* add unittest
test=develop
* add newline
test=develop
* typo fix
test=develop
7 years ago
Qinghe JING
288b1e75de
Fix segmentation fault bug in reduce ops ( #22079 )
...
* fix dim=[] bug in reduce ops
7 years ago
zhongpu
385ed8a5e1
fix warning in test_install_check.py, test=develop ( #22087 )
7 years ago
silingtong123
370a8e9126
Remove unit tests that are no longer maintained ( #22081 )
7 years ago
chengjuntao
e519a1fc82
add bigger shape test example for elementwise_pow OP ( #22063 )
7 years ago
zhupengyang
8b3ef2a587
all cases use large shape ( #22091 )
...
enhanced ops: unsqueeze, squeeze2, strided_slice, unsqueeze,
unsqueeze2, var_conv_2d, spectral_norm, slice, match_matrix_tensor,
nce, pad, pad_constant_like, filter_by_instag
7 years ago
zhupengyang
85ba527522
all cases use large shape ( #22065 )
...
affine_channel, affine_grid, bilinear_interp, bilinear_tensor_product,
clip, crop, crop_tensor, cumsum, data_norm, expand, expand_as
7 years ago
123malin
7fb817d447
add distributed_strategy ( #21710 )
...
* add distributed_strategy
7 years ago
Jacek Czaja
ad8a9cb82c
[MKL-DNN] Pool & LRN Grad Ops NHWC support ( #21747 )
7 years ago
Adam
e1d666fb8b
Hotfix to MKL-DNN pool2d tests ( #22086 )
7 years ago
zhupengyang
bf978fffe5
all cases use large shape ( #22084 )
...
flatten, flatten2, gather, gather_nd, group_norm, gru,
gru_unit, reduce_max, reduce_min, reduce_mean, reduce_sum,
reshape, scatter_nd_add, sequence_expand, sequence_expand_as,
sequence_pad
7 years ago
liym27
7d8d45991a
control flow: support optimizer called ( #21851 )
...
* append optimize op in the grad block of current block if current block is in control flow. test=develop
* add conditional grad op when optimizer used in control flow. test=develop
* add comment and modify typo. test=develop
* fix append_backward to support control flow. test=develop
* add test. test=develop
* fix copy_var_to_parent_block and conditional_block_grad. test=develop
* fix bug: revert to append conditional_block_grad vars to sub grad block. test=develop
* fix bug: revert to assign var to parent block even if var already is in parent block
* fix bug: consider outputs is empty. test=develop
* move _rename_grad_ out. test=develop
* modify code according to reviews from Huihuang. test=develop
* modify code according to reviews from Jinle. test=develop
7 years ago
Qinghe JING
12b2b4b1a1
Add gradient check to reduce_max and reduce_min ops ( #21985 )
7 years ago
ShenLiang
3fab86ffa6
add package for centerloss ( #21806 )
7 years ago
Leo Zhao
1c39efb783
Enable test conv2d ngraph ( #22074 )
7 years ago
Leo Chen
3f653c8323
register NoNeedBufferVarsInference for max_pool_grad_op, test=develop ( #22055 )
...
* fix test_conv2d_ngraph for grad diff, test=develop
* register NoNeedBufferVarsInference for max_pool_grad_op, test=develop
* refine error message, test=develop
* fix numpy, test=develop
* disable test conv2d_ngraph_op, test=develop
Co-authored-by: Zhang Ting <709968123@qq.com>
7 years ago
Liufang Sang
5b8837897d
add shape description in accuracy api doc ( #22011 )
...
* add shape description in accuracy api doc test=develop
* fix details test=develop
* fix details test=develop
7 years ago
Michał Gallus
6192108408
[DNNL] 3D Fully-Connected ( #21746 )
7 years ago
Yibing Liu
c1fea3e3e2
Fix example in log_loss doc ( #22052 )
...
* Fix example in log_loss doc, test=develop
* Use none for unknown dim, test=develop, test=document_fix
7 years ago
huzhiqiang
f5f65a7e8a
OP unit test specification: compiletime-runtime consistency check ( #22006 )
7 years ago
FDInSky
aa2ed0dcc6
fix generate_proposal_labesl op ( #21793 )
...
* test=develop fix generate_proposal_labesl op
7 years ago
mapingshuo
81030125a3
convert input vars' dtype for range op ( #22028 )
...
* convert dtype of vars for range op, test=develop
7 years ago
ceci3
95d79b6d00
update error log for batch_norm_grad ( #22017 )
...
* update error information about batch_norm_grad
* update bn,test=develop
7 years ago
dyning
985e4bae5e
fix unittest for spp op, test=develop ( #22030 )
...
fix unittest for spp op
7 years ago
songyouwei
56414c7daf
move private weight fields to public ones ( #21982 )
...
* move private weight properties to public ones
test=develop
* revert changes to FC
test=develop
* fix unittest
test=develop
* fix unittest
test=develop
* fix coverage
test=develop
* fix merged dev
test=develop
* bug fix
test=develop
7 years ago
Pei Yang
b852ef7375
add no_check_set check for op unittests ( #21611 )
7 years ago
liym27
c7b03d308c
open test_parallel_executor_fetch_feed for PR_Windows_CI. test=develop ( #22020 )
7 years ago
Chen Weihang
9a2204ee1f
Uniform append_backward & gradients parameter_list type to Variable ( #21938 )
...
* update doc, test=develop
* fix related unittests, test=develop
* fix str incompatible error, test=develop
7 years ago
Aurelius84
6b4c33ee30
fix decay param in DecayAdagrad test=develop ( #22026 )
7 years ago
Zhang Ting
835ba4ec81
add is_empty_grad_op for OpTest ( #22022 )
...
* add is_empty_grad_op for OpTest, test=develop
7 years ago
silingtong123
34e26c9a7d
remove @unittest.skip in test_parallel_executor_mnist.py ( #22019 )
7 years ago
ShenLiang
b68f4e006d
Fix the doc of scatter_nd ( #22015 )
...
fix the doc of scatter
7 years ago
WangXi
3ec289a6a3
fix sync_batch_norm hang in fleet ( #21838 )
7 years ago
Aurelius84
a0b533765e
increase data shape in topk_avg_pooling unittest ( #22010 )
7 years ago
Zeng Jinle
86c40e207d
Expose fluid.dygraph.TracedLayer API ( #21518 )
...
* expost fluid.dygraph.TracedLayer apis, test=develop
* polish doc, test=develop
* follow comments, test=develop, test=document_fix
* follow comments, test=develop
* remove save_inference_model return value, test=develop
7 years ago
Aurelius84
911eef4319
enhance checking validity of apply_gradient ( #21870 )
...
* enhance checking validity of apply_gradient test=develop
* refactor code test=develop
* stash
* add adamOptimizer test=develop
* add adamOptimizer test=develop
7 years ago
Leo Chen
33f1306753
update layers used in mnist dygraph model, test=develop ( #21947 )
...
* update layers used in mnist dygraph model, test=develop
* fix import issue, test=develop
* add dygraph utils, test=develop
* add unittest, test=develop
7 years ago
Yang Zhang
c3527f5526
Annotate NormOP test to skip grad check ( #21894 )
7 years ago
FDInSky
fa8bab9cbc
add fp64 check_grad for conv2d, conv3d ( #21931 )
...
* test=develop add fp64 check_grad for conv2d, conv3d
7 years ago
FDInSky
cf7b325389
fix conv2d_transpose op unittest ( #21927 )
7 years ago
Kaipeng Deng
f4013ecb3b
enable kldiv_loss_op unittests ( #21990 )
7 years ago
Kaipeng Deng
c15d4208b9
fix no grad check for pool_max & spectral_norm ( #21971 )
...
* fix no grad check for pool_max & spectral_norm. test=develop
7 years ago
Li Fuchen
e0d8b8f5c0
use large input size in test_add_position_encoding_op.py ( #21962 )
...
* use large input size in test_add_position_encoding_op.py, test=develop
* revert shape_white_list, test=develop
7 years ago
Leo Chen
ba51043f7e
remove parameter block in to_variable, test=develop ( #21933 )
7 years ago
zhoushiyu
cee2ccb078
add shuffle batch op ( #21674 )
...
* add shuffle batch op, test=develop, test=document_preview
* fix size_t conflict and check_output test=develop, test=document_preview
* fix bug test=develop, test=document_preview
* add unittest of shuffle_batch layer test=develop, test=document_preview
* fix py coverage and op input type, test=develop, test=document_preview
* fix py coverage, test=develop
* fix en doc, test=develop
* move to contrib test=develop
* add unique_name test=develop
* invoke shuffle_batch in contrib.layers test=develop
7 years ago
zhongpu
dca075839b
remove params in Tracer object (in dygraph) ( #20815 )
...
* remove params in Tracer object, test=develop
* Repair failed optest, test=develop
* remove build_once & name_scope (Conv2D)
test=develop
* fix unittest
test=develop
* Conv2DTranspose
* Conv3D & Conv3DTranspose
test=develop
* Pool2D & BatchNorm
* Embedding
* LayerNorm
* GRUUnit & NCE
* PRelu
* BilinearTensorProduct
* GroupNorm & SpectralNorm
* TreeConv
test=develop
* fix LayerNorm in transformer unnittest
test=develop
* disable LayerNorm or BatchNorm in multicard
test=develop
* refine Layer.create_parameter api
test=develop
* refine LayerNorm, remove begin_norm_axis param, add normed shape check
test=develop
* LayerNorm bug fix
test=develop
* fix optest,test=develop
* fix optest, test=develop
* fix optest for pass parameter_list when constructing an Optimizer class instance, test=develop
* polish code for better code style, test=develop
* fix se_resnext optest, test=develop
* polish code for better code style, test=develop
Co-authored-by: songyouwei <youwei0314@gmail.com>
7 years ago
mapingshuo
c3e1954918
make reverse op support negative axis ( #21925 )
...
* make reverse op support negative axis
7 years ago
pkpk
911e4c7db6
Fix the bug in sequence_scatter unitest ( #21960 )
...
* test=develop
* test=develop
* test=develop
* change the check_shape_white_list in web
* test=develop
* test=develop
7 years ago
lijianshe02
2687f2afec
fix input shape of test_log_loss_op ( #21953 )
7 years ago
juncaipeng
b1ec1d54cf
Delete check grad for int, collect op for now ( #21922 )
7 years ago
hutuxian
27decacb8a
fix aucop stat shape ( #21846 )
...
* fix stat shape back in global auc scenario
* add UT to cover global auc
7 years ago
WangXi
0d61653c8e
Revert to run distributed unittest serially, test=develop ( #21924 )
7 years ago
songyouwei
cff7a49856
Add ParameterList ( #21056 )
...
* add ParameterList container
* add unittest
test=develop
* fix container, rebase remove build_once
test=develop
* add parameters None check
test=develop
* update Sequential unittest
test=develop
* use Linear in Sequential sample code
test=develop
* fix Sequential arg type doc
test=develop
7 years ago
songyouwei
8439384e25
Move sequence op unittest files to a separate folder sequence ( #21842 )
...
* move sequence op unittests to a separate folder
test=develop
* add missing CMakeList file
test=develop
* fix relative path import
test=develop
* fix relative import
test=develop
* use sys.path.append
test=develop
7 years ago
GaoWei8
2690ddb558
Use skip_check_grad_ci to skip grad check ( #21907 )
7 years ago
zhupengyang
1f3029cb54
ci check for check_shape_white_list.py ( #21859 )
7 years ago
Aurelius84
51a86d2b6b
Optimize adam speed ( #21777 )
...
* optimize adam speed by removing _finish_update test=develop
* fix SparseAdamFunctor param list test=develop
* Remove scale_op in expect_list of adam_op test=develop
* fix test optimizer loss assert error test=develop
* fix test optimizer loss assert error test=develop
* modify PADDLE_ENFORCE usage test=develop
* fix op_type in lamb_op.cc test=develop
* fix errors ostream format bug test=develop
* add betaPowOut in ngraph op test=develop
* fix ngraph::op api for gcc8 test=develop
* clean code test=develop
* modify struct into class test=develop
* remove code of beta1Tensor in lamb_op test=develop
7 years ago
Leo Chen
310edc0d0c
Update layers used in ptb model to use auto-generated op functions in dygraph mode ( #21724 )
...
* update layers, test=develop
* fix input numpy, test=develop
* fix bugs, test=develop
* follow commments, test=develop
* update getitem, test=develop
7 years ago
lijianshe02
f17bd1786a
add decorator skip_check_grad_ci for test_group_norm ( #21910 )
...
* add decorator skip_check_grad_ci for test_group_norm test=develop
7 years ago
juncaipeng
feabed1309
Modify op test ( #21835 )
...
* remove return in op_test teardown, test=develop
* add check_grad for fp64 and other type
* update white list
7 years ago
huzhiqiang
53c16eabe4
test the compatibility between execution time and compiling time ( #21511 )
...
* test the equality between running-time and compiling time
* add white_list for compile_vs_runtime check test=develop
* add check of new-registered op on compile&runtime-lodEquality test=develop
* test=develop
* test=develop
* update white-list test=develop
* merge with new code test=develop
* fix code style test=develop
* test=devleop
* test=develop
* test=develop
* test=develop
* add more ops to white_list test=develop
* test=develop
* test=develop
* test=develop
* test=develop
* test=develop
* fix code_style: add comments test=develop
* test=develop
7 years ago
lidanqing
9dff56e8e2
change qat_performance with mobilenet, change batch_size of qat2_resnet50 ( #21895 )
...
test=develop
7 years ago
zhupengyang
5b282a8157
skip check_grad of TestHSigmoidOpSparse ( #21888 )
7 years ago
FDInSky
6b9fbcf3ad
Update iou_similarity op to support non-normalized bbox ( #21671 )
...
Update iou_similarity op to support non-normalized bbox
7 years ago
zhupengyang
d053561d84
use large input size in tree_conv and teacher_student_sigmoid_loss ( #21896 )
...
test=develop
7 years ago
guofei
46f9184aff
Modify the while_loop API ( #21844 )
7 years ago
Guo Sheng
7689b6aaa4
Fix default label dim of label_smooth_op. test=develop ( #21862 )
7 years ago
Galden
c63ce41102
resolve #21799 ( #21872 )
...
fix flip comments, test=develop
closes:#21799
7 years ago
WangXi
52a61edaad
rename test_dist_mnist & run dist parallel, test=develop ( #21874 )
7 years ago
silingtong123
879e3074ea
fix the unittest of test_check_import_scipy on V100 ( #21853 )
7 years ago
Leo Chen
a25418b32c
Set dtype of compare op's output to bool ( #21864 )
...
* add unittests, test=develop
* set dtype of compare op to bool, test=develop
7 years ago
tangwei12
934d99867a
add selected rows supported in framework ( #21808 )
...
* add selected rows supported in framework
7 years ago
gongweibao
855ed5fb3d
revert parallel test=develop ( #21856 )
7 years ago
Leo Chen
25e765a4fe
Copy stop_gradient property of variable in clone ( #21825 )
...
* copy stop_gradient property in clone, test=develop
* fix pruning issue, test=develop
* fix kLookupTablePath issue, test=develop
* sync program, test=develop
* copy subblocks, test=develop
* add unittests, test=develop
7 years ago
hong
957e182a90
revert a+b axis change; test=develop ( #21821 )
7 years ago
tangwei12
6624ea7673
skip test_fetch_handler, will investigate it later, test=develop ( #21845 )
7 years ago
Chen Weihang
2b941736f3
fix softmax_with_cross_entropy_fix bug, test=develop ( #21810 )
7 years ago
juncaipeng
f4379a9149
Update the precision of some op tests from fp32 to fp64 ( #21847 )
7 years ago
Zhang Ting
538c848958
add decorator skip_check_grad_ci ( #21836 )
7 years ago
juncaipeng
bf9c5de752
Update test precision from fp32 to fp64 ( #21848 )
7 years ago
GaoWei8
2b1f08c76c
Remove self-set accuracy parameters of op tests: max_relative_error ( #21815 )
7 years ago
zhupengyang
9bb1e3ea16
add shape_check for op tests ( #21391 )
7 years ago
songyouwei
63a5fb4cac
tmp fix depthwise_conv2d in dygraph ( #21840 )
...
test=develop
7 years ago
juncaipeng
5bb9deb335
Update the precision of some op tests from fp32 to fp64 ( #21774 )
7 years ago
Chengmo
a86f11b5f5
Speed GEO dense calc & communication ( #21579 )
...
* test=develop, speed dense calc & communication
7 years ago
Wojciech Uss
666c3bb9b0
handle multi-inputs with empty inputs for mkldnn_concat_op ( #21827 )
...
test=develop
7 years ago
GaoWei8
a9af87edbc
Remove self-set accuracy parameters of op tests: max_relative_error ( #21823 )
...
* Remove self-set accuracy parameters of op tests: max_relative_error
test=develop
* fix error
test=develop
7 years ago
GaoWei8
e53d5967c9
Remove self-set accuracy parameters of op tests: max_relative_error ( #21816 )
...
* Remove self-set accuracy parameters of op tests: max_relative_erro
test=develop
* fix error
test=develop
7 years ago
songyouwei
1395828408
Add dygraph Linear layer ( #21265 )
...
* add Linear layer
test=develop
* update unittest for coverage
test=develop
7 years ago
GaoWei8
d683b65b1a
Remove self-set accuracy parameters of op tests: atol ( #21711 )
...
* Remove self-set accuracy parameters of op tests:atol
test=develop
* keep smaller parameters
test=develop
* fix error
test=develop
7 years ago
juncaipeng
8b74fc4fa7
Fix post training quantization ( #21745 )
...
* fix post training quantization bug of memory constrained, support the input be different, test=develop
7 years ago
Zeng Jinle
aa4d6a5d6c
Add some debug flags to auto growth allocator ( #21766 )
...
* add some debug flags to auto growth allocator, test=develop
* add comments about auto growth, test=develop
7 years ago
Leo Chen
c50ebeac12
add comments of inplace_atol ( #21819 )
7 years ago
guofei
8b7c50f49a
Make While Op could run on GPU place and add while_loop unittest ( #21672 )
...
1. Make while_op accept GPU conditional data
2. Add more complex test cases for while_loop API
7 years ago
GaoWei8
a3a3558dd0
Remove self-set accuracy parameters of op tests: max_relative_error ( #21817 )
...
test=develop
7 years ago
GaoWei8
187d1c38ef
Remove self-set accuracy parameters of op tests: max_relative_error ( #21744 )
...
* Remove self-set accuracy parameters of op tests: max_relative_error
test=develop
* fix errors
test=develop
7 years ago
silingtong123
3c33417905
modify the method of skipping CI in distributed unittests ( #21764 )
7 years ago
juncaipeng
fb067fa4d2
Modify test framework, test=develop ( #21789 )
...
*use dtype to determine whether check_grade is needed, and delete useless class
7 years ago
Huihuang Zheng
557bce77da
Fix Backward Bugs in Conditional Block ( #21809 )
...
The fixed bugs:
1. The condition sub-graph is not pruned
2. When backward graph is extremely simple, the whole backward ops are pruned.
7 years ago
GaoWei8
eab124ba98
fix accuracy parameters of op tests ( #21813 )
...
test=develop
7 years ago
juncaipeng
642b33564e
Update test precision from fp32 to fp64 ( #21805 )
7 years ago
Zeng Jinle
04909137f5
fix lr assert, test=develop ( #21780 )
7 years ago
juncaipeng
9894a4fb35
update test precision from fp32 to fp64, test=develop ( #21783 )
7 years ago
Leo Chen
c96f06f2f6
add unary operator __neg__, test=develop ( #21787 )
...
adds unary operator __neg__ for VarBase in dygraph mode, and for Variable in static graph mode.
7 years ago
GaoWei8
65c8eac9fe
Remove self-set accuracy parameters of op tests: max_relative_error ( #21741 )
...
* Remove self-set accuracy parameters of op tests: max_relative_error
test=develop
* Remove self-set accuracy parameters of op tests: max_relative_error
test=develop
* Remove self-set parameters of op tests: max_relative_error
test=develop
7 years ago
GaoWei8
579a159a7b
Remove self-set accuracy parameters of op tests: max_relative_error ( #21739 )
...
* Remove self-set accuracy parameters of op tests: max_relative_error
test=develop
* Remove self-set accuracy parameters of op tests
test=develop
* keep smaller parameters
test=develop
7 years ago
zhouwei25
ecb2419e5c
increase the explanation doc of py_func ( #21631 )
...
* increase example code of py_func, fix some wrong description of English API doc
7 years ago
Youwei Song
b976ba3e83
fix unittests ( #21786 )
...
test=develop
7 years ago
Zhang Ting
73e97d39b4
add check for check_grad in Op unittests ( #21383 )
7 years ago
Huihuang Zheng
0677a1c1c1
Fix That conditional_block_op Doesn't Have InferShape ( #21733 )
7 years ago
GaoWei8
ac666b8ac3
Remove self-set accuracy parameters of op tests: atol ( #21731 )
...
* Remove self-set accuracy parameters of op tests
test=develop
* add cast
test=develop
* Remove self-set accuracy parameters of op tests:atol
test=develop
* lrn_ngraph_op
test=develop
* Keep smaller parameters
test=develop
7 years ago
GaoWei8
c924353d4f
Remove self-set accuracy parameters of op tests: max_relative_error ( #21740 )
7 years ago
Youwei Song
f6144d8463
remove build_once & name_scope ( #21131 )
...
* remove build_once & name_scope (Conv2D)
test=develop
* fix unittest
test=develop
* Conv2DTranspose
* Conv3D & Conv3DTranspose
test=develop
* Pool2D & BatchNorm
* Embedding
* LayerNorm
* GRUUnit & NCE
* PRelu
* BilinearTensorProduct
* GroupNorm & SpectralNorm
* TreeConv
test=develop
* fix LayerNorm in transformer unnittest
test=develop
* disable LayerNorm or BatchNorm in multicard
test=develop
* refine Layer.create_parameter api
test=develop
* refine LayerNorm, remove begin_norm_axis param, add normed shape check
test=develop
* LayerNorm bug fix
test=develop
7 years ago
WangXi
0fe16539ef
Fix dgc & launch tests in cpu ci ( #21759 )
7 years ago
zhaoyuchen2018
a5a8d14414
Fix softmax cuda bug ( #21720 )
...
* Fix softmax cuda bug
* Refine multihead log and softmax logic
7 years ago
Kaipeng Deng
943a44492b
yolo_box OP add Attr(clip_bbox). ( #21620 )
...
* yolo_box OP add Attr(clip_bbox). test=develop
7 years ago
zhupengyang
c4f8f3bddc
use large input shape for accuracy test ( #21758 )
...
- ngarph: elementwise_sub, elementwise_mul
- mkldnn: transpose, sum
- others: scatter_nd
test=develop
7 years ago
GaoWei8
92f83e46aa
fix accuracy parameters of op tests ( #21729 )
...
test=develop
7 years ago
zhouwei25
e92d113590
fix bug that tuple(Variable) is converted to list(Variable) uncorrectly ( #21687 )
7 years ago
Leo Chen
7181afd75c
Fix elementwise_pow bug on CUDA place with integer ( #21675 )
...
* fix elementwise_pow bug on integer, test=develop
* use llrint to support elementwise_pow_grad, test=develop
* add some tests, test=develop
* revert grad functor, test=develop
7 years ago
Chen Weihang
68999b6c7a
simplify dygraph data loader code, test=develop ( #21722 )
7 years ago
Leo Chen
9c481e12ba
Patch math method for VarBase using auto-generated op functions ( #21656 )
...
* patch math method for varbase using auto-generated op functions, test=develop
* clean code that handles batch_size, test=develop
* follow comments, test=develop
* follow comments, test=develop
* code clean, test=develop
7 years ago
lilong12
aa287e19fe
remove the dependency on ssl ( #21712 )
7 years ago
Aurelius84
1ee5ba1c58
Enhance checking on sub branch of backward ( #21582 )
...
* add backward unittest test=develop
* add sub-branch in test_backward.py test=develop
* refine code, add comment test=develop
* reconstruct TestBackward Class test=develop
* fix typo of comment test=develop
7 years ago
WangXi
4570295122
fix assert in nan inf tests, test=develop ( #21742 )
7 years ago
gongweibao
549f24b5f1
run dist tests parallel( #21751 )
7 years ago
juncaipeng
a6e935f424
Update op test framework ( #21599 )
...
* update op test framework
7 years ago
juncaipeng
7c38612347
disable op test of kldiv_loss ( #21749 )
7 years ago
zhupengyang
d528ffaa04
use large input shape for accuracy test ( #21716 )
...
affine_grid, label_smooth, spectral_norm, warpctc,
nearest_interp, data_norm, match_matrix_tensor,
var_conv_2d, fused_embedding_seq_pool
test=develop
7 years ago
WangXi
a2175cfc96
Tmp fix fleet bug in py35 gcc8 CI, test=develop ( #21703 )
7 years ago
zhupengyang
227edfe9da
use large input shape for op tests ( #21705 )
...
sequence_expand_as, squared_l2_distance, gather_nd,
center_loss, rank_loss, conv_shift, spp,
modified_huber_loss, smooth_l1_loss, multiplex,
sequence_softmax, nce, huber_loss, group_norm,
kldiv_loss, hinge_loss, expand_as
test=develop
7 years ago
joanna.wozna.intel
d419b859c0
Add reshape int8 mkldnn op ( #21428 )
...
* Add reshape int8 op
test=develop
* Change test to CPUPlace
test=develop
* Correct tests
test=develop
7 years ago
baojun
c047e713b0
make nGraph ut py3 compatible ( #21679 )
7 years ago
baojun
3b915741b2
Fix nGraph UT for PY3 - Part I ( #21678 )
...
* fix test for PY3 test=develop
* reduce file changes test=develop
7 years ago
WangXi
8a0f611b64
Rewrite check nan inf tools ( #21076 )
7 years ago
zhupengyang
019147eb8b
use large input shape for accuracy test, ( #21693 )
...
sequence_unpad, expand, pad, pad_constant_like,
norm, bilinear_tensor_product, flatten2, im2sequence,
unpool, cos_sim, strided_slice, flatten, elementwise_min,
abs, acos
test=develop
7 years ago
juncaipeng
5c4106023c
disable qat int8 test for now, test=develop ( #21696 )
7 years ago
tangwei12
9ad940fdfe
memory leak for cpu ( #21174 )
...
* add fake init for the trainer, fix large memory hold in the trainer
* do not merge recv vars from a remote endpoint, test=develop
* add recv and save op, merge slice var in one op, save memory
* remove hsigmoid with pull sparse, test=develop
7 years ago
zhupengyang
4c987a6003
fix input shape of op tests ( #21682 )
...
* fix input shape of op tests for elementwise_sub,
gather, pad2d, transpose, softmax, scale,
elementwise_max, hierarchical_sigmoid, reshape2,
sign, squeeze, reduce_sum, sum, squeeze2,
unsqueeze, unsqueeze2, cast, reverse
test=develop
* fix cast, elementwise_mul, gather, scale, sign,
softmax, transpose
test=develop
7 years ago
juncaipeng
f64d006622
Change several tests to inherit the right parent class, test=develop ( #21652 )
...
* change several tests to use the right parent class, test=develop
* add dtype for TestLoDTensorAndSelectedRowsOp, test=develop
7 years ago
mapingshuo
686f0ecb6a
add `no_need_buffer_slots` interface to pybind ( #21575 )
...
* add no_need_buffer_slots interface to pybind
7 years ago
juncaipeng
52f38877e4
Fix ci bug for deleting data files when other test is running ( #21661 )
...
* fix ci bug for deleting data files, test=develop
* update, test=develop
7 years ago
Huihuang Zheng
99331fa113
Fix current block in math_patch_op ( #21189 )
7 years ago
Chen Weihang
d96acc3363
Refine dygraph DataLoader implementation ( #21634 )
...
* refine dygraph dataloader & polish related code, test=develop
* refine code based review comment, test=develop
7 years ago
mapingshuo
e2d849b989
Dropout with seed ( #21590 )
...
* add seed op
7 years ago
xujiaqi01
f404157205
fix master patch when slot is dense ( #21580 )
...
* fix master patch when slot is dense
* test=develop
7 years ago
Leo Chen
48600d7f17
Add op function generator for dygraph ( #21569 )
...
* add op function generator, test=develop
* add unittest, test=develop
* follow comments, test=develop
* fix windows compilation problem, test=develop
7 years ago
zhongpu
9a4dd1bc25
support float64 for GradClipByGlobalNorm in dygraph, test=develop ( #21401 )
...
* support float64 for GradClipByGlobalNorm in dygraph, test=develop
* fix comment for GradClipByGlobalNorm, test=develop
7 years ago
zhongpu
8777e8c1e9
fix Conv2DTranspose API, test=develop ( #21403 )
7 years ago
lidanqing
fbf9eca0d3
QAT Int8 document ( #21360 )
...
* update benchmark for int8v2, QAT1, QAT2 accuracy and performance
test=document_fix
* change according to reviews
test=develop test=document_fix
* improve some descriptions and some models
test=develop test=document_fix
* update models benchmark data
test=develop test=document_fix
* update int8v2 and qat2 performance
test=develop test=document_fix
7 years ago
Huihuang Zheng
a1a5adc9b8
Refine English Doc of cond API ( #21609 )
...
As the title
7 years ago
Zhang Ting
548efcd2e4
Fix unit tests to avoid check_grad checking failures ( #21554 )
...
* fix python API tests that do not need to inherit OpTest, test=develop
* fix fp16 cases that will only be enabled in GPU mode, test=develop
* remove TestSoftmaxFP16Op from test cases of softmax_mkldnn_op, test=develop
* fix tests so that the cases are only created in GPU mode, test=develop
7 years ago
liym27
be6a639655
Add CI for checking Input/Output/Attr of modified Ops ( #21522 )
...
* add shell scripts. test=develop
* rename test_pybind_inference to test_pybind_interface and print repeat process in check_op_desc.py. test=develop
* add approval RD. test=develop
7 years ago
guofei
835ea12cde
Control flow API: while_loop ( #21276 )
...
Add basic while_loop
7 years ago
Leo Chen
4f81d1bd5f
Refine VarBase init function ( #21587 )
...
* refine init function, test=develop
* add tests, test=develop
* remove extern, which may cause symbol error in gcc-4.8, test=develop
7 years ago
lijianshe02
56882ce432
change input data type and decrease max_relative_error value in test_check_grad for grop_nom_op test test=develop ( #21608 )
7 years ago
Huihuang Zheng
1dcf6a7212
Add Much Complex Test and Fix Bugs for Control Flow cond API ( #21532 )
...
Add tests to use dy/dx to make sure the gradient values calculated by the control flow backward is correct. Also fixed bugs detected by those tests.
Fix bugs:
1. Unlike sum_op, optimizer ops don't allow uninitialized input tensor. But in conditional_block_grad_op, since the conditional_block may not run, the output gradient tensor may be uninitialized, which will cause the optimizer op error. To fix it, we should let optimizer ops support uninitialized input like sum_op or assign the uninitialized gradient to 0 when the conditional_block_grad_op doesn't run. I found there are about 10+ optimizer ops. **To be simpler, I just assign output gradient of the conditional_block_grad_op to 0 in this PR**. But it can be further explored whether we can make optimizer ops like sum_op to support uninitialized input tensor because theoretically we can speed up without the assigning in conditional_block_grad_op.
2. Infer parameter shapes during append_backward. I didn't know that all our parameters are in global block. When op_desc is inferring shapes at the sub-block, it may not know the shape of gradients of parameters whose shape information is at global block. I fixed it by inferring shapes of gradients from forward var.
This PR also did some code clean up:
1. Print the var name when sgd_op catches shape error so that it is easier to debug
2. Fix a typo: dicta -> dict
7 years ago
hutuxian
c5aec2fe68
Paddlebox Related to Framework ( #21586 )
...
* Add a single_process_multi_thread transpiler.
* Add some UTs.
* Fix some API description.
7 years ago
liym27
9da7e6b4d4
add file check_op_desc.py and add interface to get default value. ( #21530 )
...
* add file check_op_desc.py and add interface to get default value. test=develop
* add test for c++ coverage rate. test=develop
* Correct typo. test=develop
7 years ago
Feiyu Chan
2057df7ac0
add fluid.layers.gelu & doc ( #21515 )
...
Add a python interface for Gelu.
Add documentation for fluid.layers.gelu.
7 years ago
wangchaochaohu
29c3844585
fix doc typo test=develop ( #21566 )
7 years ago
Jacek Czaja
9ce0e29dc3
[MKL-DNN] Batch norm mkl-dnn NHWC support ( #21553 )
...
* - BAtch norm mkl-dnn NHWC
test=develop
- compilation fix
test=develop
- UT fix
- cosmetics
test=develop
- Fix to Batch Norm MKL-DNN NHWC UT
test=develop
Conflicts:
paddle/fluid/operators/batch_norm_op.h
* - Lint fixes
test=develop
7 years ago
danleifeng
657053f262
remove elementwise x_should_larger_than_y restriction;test=develop ( #21517 )
7 years ago
hong
08483a6819
Add dygraph linear warm up decay ( #21186 )
...
* dygraph mode support linear lr warm up; test=develop
* add unitest for linear warmup; test=develop
* add input type check; test=develop
* fix type check assert error; test=develop
* change type error; test=develop
7 years ago
lilong12
da75ac8b6c
bugfix: construct a DistributedStrategy instance if the passed one is None ( #21545 )
7 years ago
lilong12
de46b15951
Unify the rank of prelu alpha to 4, corresponding to [N, C, H, W], except for the all mode
7 years ago
Leo Chen
cdd46d7e02
Split VarBase from Python Variable for Dygraph ( #21359 )
...
* test=develop, fix docker with paddle nccl problem
* don't expose numerous Tensor.set(), test=develop
* fix condition, test=develop
* fix float16 bug, test=develop
* feed should be Tensor or np.array, not Variable or number, test=develop
* use forcecast to copy numpy slice to new array, test=develop
* remove float16-uint16 hacking, test=develop
* add variable method to varbase and refactor to_variable to support return varbase
* support kwargs in varbase constructor
* add VarBase constructor to support default python args
* refine varbase initial method
* reset branch
* fix ut for change VarBase error info to PaddleEnforce
* cherry is parameter change before
* overload isinstance to replace too many change of is_variable
* rm useless files
* rm useless code merged by git
* test=develop, fix some ut failed error
* test=develop, fix test_graph_wrapper
* add some tests, test=develop
* refine __getitem__, test=develop
* add tests, test=develop
* fix err_msg, test=develop
7 years ago
Youwei Song
cdba41af4d
dygraph Embedding layer use lookuptable v2 ( #21209 )
...
* dygraph Embedding layer use lookuptable v2
test=develop
* fix test_nce
test=develop
7 years ago
wangchaochaohu
4c9b3dafa7
fill_constant_batch_size_like OP precious problem fix ( #21337 )
...
* fix fill_constant_batch_size_like_op precious problem test=develop
7 years ago
Zhang Ting
b1da35261b
fix unit tests that do not need to inherit OpTest ( #21460 )
...
* fix PythonAPI test in Op unittest, test=develop
* fix unit tests that do not need to inherit OpTest, test=develop
7 years ago
WangXi
768f9242e9
Fix dgc clip & rampup step, test=develop ( #21491 )
7 years ago
Aurelius84
54382ce497
Add get_all_kernels api of registered data_type in pybind.cc ( #21499 )
...
* add _get_all_register_op_kernels api test=develop
* refine usage of check_op_register_type test=develop
* add import in core test=develop
7 years ago
lilong12
e75ded08a0
fix the compatiable problem between PY2 and PY3 (issue#20749) ( #20942 )
...
* fix the compatiable problem between PY2 and PY3.
* add ut, test=develop
* add proxy, test=develop
* download dataset before test, test=develop
7 years ago
Zeng Jinle
a3535812f6
add _use_system_allocator to some op tests, test=develop ( #21504 )
7 years ago
Jacek Czaja
18a5d30754
[MKL-DNN] Conv2d and Conv2d transpose MKL-DNN NHWC support ( #21466 )
7 years ago
ruri
2445fef386
Fix density sample ( #21506 )
7 years ago
zhongpu
6ebf0f47b8
support SelectedRows in dygraph, test=develop ( #21078 )
...
* support SelectedRows in dygraph, test=develop
* fix bug of _grad_ivar interface, test=develop
* add optest for support seletedrows, test=develop
* fix bug for gradient_accumulator in GPU mode, test=develop
* fix error when Selectedrows addto LodTensor in sorted_gradient mdoe in dygraph, test=develop
* refine and simplify gradient accumulator code, test=develop
* add optest, test=develop
* add optest and simplify code, test=develop
* fix bug for test_imperative_selected_rows, test=develop
* add optest for Coverage, test=develop
* fix gradient interface and simplify code, test=develop
* update api for gradient, test=develop
* fix ShareDim's bug in DygraphExecutionContext class, test=develop
* add optest, test=develop
7 years ago
lilong12
0bc8bdf724
set dim[0] to -1 if dim[0] < 0 during compiling for c_allgather op ( #21402 )
...
* set dim[0] to -1 if dim[0] < 0 and remove assertion to runtime, test=develop
* modify ENFORCE message, test=develop
* add validation for x.shape[0] > 0, test=develop
* add ut, test=develop
7 years ago
Aurelius84
4bf115b42d
Fix AdamOptimizer and Scale sample code Bug ( #21478 )
...
* fix adam sample code bug test=document_fix
* fix sample code bug in scale test=document_fix
7 years ago
ruri
94bef03539
Revert "Add masked select api ( #21172 )" ( #21456 )
...
This reverts commit 007c997572 .
7 years ago
ruri
3706ea67f8
fix sample code in density prior box
7 years ago
Zeng Jinle
87ab93af01
fix adam fp64, test=develop ( #21423 )
7 years ago
liym27
beec87b911
fix bug in example codes of API case and switch_case. test=develop,test=document_fix ( #21477 )
7 years ago
hutuxian
7e68bc896b
refactor AUC OP and add its CUDA Kernel ( #21336 )
...
* refactor AUC OP and add its CUDA Kernel
* the layout of global auc doesn't change
7 years ago
juncaipeng
1f57ac1241
delete concat in AddQuantDequantPass, test=develop ( #21454 )
7 years ago
Zeng Jinle
2a54c359f0
add fraction of cpu memory to use, test=develop ( #21453 )
7 years ago
Zhang Ting
101240d2c1
fix PythonAPI test in Op unittest, test=develop ( #21462 )
...
There are PythonAPI tests in Op's unittest which don't need to inherit OpTest class.
7 years ago
wawltor
dbbe6e9cb6
fix the device supported of the op unique and unique_with_counts. ( #21395 )
...
* fix the device supported of the op unique and unique_with_counts.
test=develop
test=document_fix
* Fix the precision of test in the op of unique and unique_with_counts.
test=develop
test=document_fix
7 years ago
Huihuang Zheng
32959e031e
Add English Document for cond API ( #21452 )
...
Add English doc for cond
7 years ago
Zhang Ting
3df13ab40c
fix PythonAPI test in Op unittest, test=develop ( #21455 )
...
There are PythonAPI tests in Op's unittest which don't need to inherit OpTest class.
7 years ago
Jie Fang
5e813b53c5
nhwc optimization for batchnorm ( #21090 )
7 years ago
Leo Chen
e0c9d856fb
add unused input vars check for OpWithKernel, test=develop ( #21169 )
...
* add unused input vars check for OpWithKernel, test=develop
* remove unused vars in some ops, test=develop
* fix batch_norm, test=develop
* add white list, test=develop
* add CI check for white list, test=develop
* :ove white list to c++, test=develop
* solve failure of CI, test=develop
* add unittest for unused_var_check, test=develop
* refine code, enable check in operator_test, test=develop
* skip mkldnn, test=develop
* extend white list, test=develop
* refine condition of mkldnn, test=develop
* fix paddle_build, test=develop
* follow comments, test=develop
* fix GetExpectedKernelType
* add wiki ref to err_msg, test=develop
* follow comment, test=develop
7 years ago
Chen Weihang
664f958a02
Fix optimizer op infershape failed in dygraph multi-cards mode ( #21374 )
...
* add param & grad shape check for sgd op
* add _reshape_inplece interface for dygraph parallel
* refine unittest based paddle/models scripts, test=develop
* add unittest for parallel grad fuse, test=develop
7 years ago
Huihuang Zheng
630be31952
Fix Cond Bug for Nested Control Flow ( #21340 )
...
* Commit before merging develop
test=develop
* Backup after working with Huihuang logs
* Commit before deleting Huihuang debug loggings
* Commit before debug
test=develop
* Fix bug commit
test=develop
* Backup of fixing bugs
test=develop
* Clean up code
test=develop
* Fix a bug in sum_op
test=develop
7 years ago
Jacek Czaja
cd43c4440e
[MKL-DNN] LRN and Pool2d (FWD) NHWC support ( #21375 )
7 years ago
xujiaqi01
ca879e5a77
fix skip_op bug ( #21418 )
...
test=develop
7 years ago
zhaoyuchen2018
b16274556a
Add dscending for argsort ( #21400 )
...
* Add ascending for argsort
* Refine api doc description.
* Refine descending description
* Add int32 logic to speedup when data is small size.
* Remove int32 opt as not support in python
7 years ago
hong
ac8546701d
Add dygraph execution context ( #20157 )
...
* add_dygraph_execution_context
* add dygraph infershape context and execution context; test=develop
* fix imperative bug; test=develop
* remove inputs outputs interface from execution context,
because it have same function with inputNames;
test=develop
* remove tracer_test ctest; test=develop
* fix split op bug; test=develop
* fix unitests bug; test=develop
* fix distribute test bug; test=develop
* fix ngraph compile bug; test=develop
* fix grad maker bug; test=develop
* fix load op bugs; test=develop
* fix operator.cc construct bug; test=develop
* remove useless name find in operator; test=develop
* add tracer_test; test=develop
* fix concat, split bug; test=develop
* remove tracer_test unitest; test=develop
* fix attribute check bug; test=develop
* add test code to fix converage; test=develop
* remove useless code, change check backward input in engin; test=develop
* unlock var type infer shape;test=develop
* add ShareAllLoD api; test=develop
* add dygraph infershape context unitest; test=develop
* remove increase and decrease lod in dygraph; test=develop
* addd override; test=develop
* fix increase descrease lod; test=develop
* fix paddle_enforce; test=develop
* disable lod op dygraph check; test=develop
* fix paddle enforce error; test=develop
* add comment for op_registry and OperatorBase; test=develop
* optimize the comment of op_registry; test=develop
* fix format of comment; test=develop
* fix format of comment; test=develop
* optimize the format of comment; test=develop
* optimize the format of the comment; test=develop
* optimize comment of op_registry; test=develop
7 years ago
hutuxian
a6b089c614
add macro to ban windows ( #21422 )
...
remove nccl related code in windows
7 years ago
Kaipeng Deng
ebfb720a63
add Adam beta1/beta2 support Variable ( #21234 )
...
* add Adam beta1/beta2 support Variable. test=develop
7 years ago
Zeng Jinle
09696d5df8
Use system allocator in OpTest ( #21335 )
...
* use system allocator in unittests, test=develop
* fix op bugs, test=develop
* fix tensor copy bug when src and dst are the same, test=develop
7 years ago
ruri
007c997572
Add masked select api ( #21172 )
7 years ago
Kaipeng Deng
67c836fb5c
batch_norm momentum support variable ( #21246 )
...
* batch_norm momentum support variable. test=develop
* fix format. test=develop
* add batch_norm momentum variable example. test=develop
* move MomentumTensor to training branch. test=develop
* split example. test=develop
* fix doc. test=develop
* fix PADDLE_ENFORCE ci. test=develop
* fix format. test=develop
7 years ago
lidanqing
c0aa13672e
Fp32 vs int8 qat C++ performance ( #21244 )
...
* add ut for comparing FP32 and QAT INT8
* add save qat transformed model python script
test=develop
* updated
* added missing file
* add "with_label"
test=develop
* performance benchmark as unit test
test=develop
* change names of unnecessary thing
* Change CMakeList.txt for model downloading and UT
test=develop
* change names of functions and params for more readable code
test=develop
* Change PADDLE_ENFORCE messages
test=develop
* fix indent problems
test=develop
* indent problems
test=develop
7 years ago
xujiaqi01
f1178e9d79
fix fleet save bug ( #21362 )
...
* fix fleet save bug of save_infernece_model
* test=develop
7 years ago
Liufang Sang
1840c1652c
add config file to avoid load checkpoint test=develop ( #21373 )
7 years ago
Zeng Jinle
b97fc16d21
fix lod_reset bug, test=develop ( #21392 )
7 years ago
hutuxian
47a82e38e3
Support data_norm gpu kernel ( #21325 )
...
* support data_norm_op run in CUDA
* add two parameters sync_stats & summary_decay_rate
* add UT
7 years ago
Youwei Song
d5ff79e55e
Support numpy bridge (enabled by default in dygraph mode) ( #20983 )
...
* add numpy bridge
* fix template compile
* add unittest, add default
test=develop
* fix unittest
test=develop
* fix unittest
test=develop
* zero_copy=True for to_variable,
test=develop
* bug fix
test=develop
* disable deprecated NumPy API
test=develop
* use better design of NumpyAllocator
test=develop
* fix Py_None check
test=develop
* reset c++ tracer when jump out dygraph guard
test=develop
* refine PADDLE_ENFORCE_xx format
test=develop
* bug fix of tracer switch
test=develop
* update decref
test=develop
7 years ago
Michał Gallus
5d7d548275
INT8 Fully-connected ( #17641 )
...
* Implement Int8 FC
* Integrate FC into INT8v2
test=develop
* int8 FC: transpose weights before computing scales
test=develop
* Add support for activation_type string in FC
test=develop
* Disable MKL-DNN's FC in VGG16 and 19
test=develop
* Disable FC quantization when mkldnn FC is disabled
test=develop
* Solve PADDLE_ENFORCES in FC int8
* Fix Paddle enforces and remove const cast
test=develop
* Fix style changes
test=develop
* Fix quantizer_tester test and add fc quantization
test=develop
* Fix FC test fail on CUDA
* Remove unnecessary log from quantize placement pass
test=develop
* Add Thread ID to FC hash key
test=develop
* Add comments to MKL-DNN FC Kernel
test=develop
* Refactor quantizer
test=develop
* Fix linter issues
test=develop
* Fix crash in slim googlenet
test=develop
* Fix PADDLE_ENFORCE messages
test=develop
7 years ago
itminner
07e6a94268
paddleslim quantization skip pattern support list of string ( #21141 )
7 years ago
Zhen Wang
be2e3e67d9
Fix some typos in AMP. ( #21354 )
...
* fix some typos in AMP. test=develop
* delete useless codes. test=develop
7 years ago
lilong12
41d13209d7
add the framework support for distfc ( #21197 )
...
* add the framework support for distfc and ut, test=develop
* fix the implementation of shard_index_op, test=develop
7 years ago
hong
a214a3081b
change download log format ( #21290 )
...
* change download log formate; test=develop
* add unittest for data download; test=develop
* remove cache before download; test=develop
7 years ago
GaoWei8
234060f88f
Add fc padding to improve mkl GEMM's performance when N and K are multiple of 128. ( #20972 )
...
* Add fc padding to solve mkl performance
test=develop
* fix gpu pass and error information
test=develop
* fix fc_fuse_pass_test
test=develop
* fix error information
test=develop
* fix error information
test=develop
* fix name and add fc op padding test
test=develop
* fix attributes
test=develop
* optimize fc padding
test=develop
* fix test
test=develop
7 years ago
ruri
6cfcbe0510
reduce interp op input size to pass CI, test=develop ( #21341 )
7 years ago
Jacek Czaja
f4cf028a8c
[MKL-DNN] Error throwing for NHWC layout for MKL-DNN ops ( #21207 )
7 years ago
Michał Gallus
ed9ceb9f98
Refactor MKL-DNN ElementwiseMul ( #21061 )
...
* Refactor MKL-DNN ElementwiseMul
remove manual fallback, remove format attrs
test=develop
* Refine PADDLE_ENFORCEs in eltwise_mul_op.h
test=develop
* Make ElementwiseMulOp inherit from ElementwiseOp
* Change type of simd_width to int
test=develop
* Remove Constructor extensions in ElementwiseOp and ElementwiseMulOp
test=develop
* Restore attributes
test=develop
* Fix test coverage for mkldnn eltwise mul
test=develop
* Conform to new is_run_common_broadcast API
test=develop
* Add UT for AreDimsAndFormatCorrect
test=develop
7 years ago
Dong Daxiang
0a93635b5f
fix logger problem ( #21342 )
...
* fix logger problem
test=develop
* refine logger
test=develop
7 years ago
wangchaochaohu
6514f52e46
fix the fill_constant op precious problem ( #21322 )
...
* fix the fill_constant op precious problem test=develop
7 years ago
zhaoyuchen2018
08c19c585d
Improve argsort performance. ( #21267 )
...
* Improve argsort performance.
- Give 200000 data to compute argsort on v100,
can speed up ~190x
before opt cost: 0.53s
after opt cost:0.0027s
- Add fp16 support
* Refine error message
* Refine code
test=develop
Signed-off-by: zhaoyuchen <zhaoyuchen01@baidu.com>
7 years ago
lijianshe02
7fcaa39b36
fix Print_op input dtype list error test=develop ( #21326 )
7 years ago
juncaipeng
84865b806b
add resnet50 test for post trainint quantization, test=develop ( #21272 )
7 years ago
Thunderbrook
9a7832f8be
print table stat info for pslib ( #21296 )
...
* print table stat
test=develop
* notes
test=develop
* notes
test=develop
7 years ago
WangXi
8ac7687e36
Fix dgc accuracy by mv regularization to local ( #21278 )
7 years ago
Zeng Jinle
b9f8ae8494
Add global value getter setter ( #21285 )
...
* add global value getter setter, test=develop
* fix error messages, test=develop
7 years ago
Dong Daxiang
691ced87c0
Refactor fetch handler ( #21264 )
...
* fix fetch handler problem and refactor
when a user define FetchHandler class, he or she should initialize a handler
with variable dict. the key of a variable dict is a user defined name,
the value of a variable dict is a Varaible generated from python API.
For each fetching, a user should implement handler function in which
fetched_result_dict will be available and the user can access the fetched value
with user defined keys.
7 years ago
Yi Liu
f1b09ba30e
adapt test_collective_base.py for only two GPU cards available. ( #21307 )
...
* adapt test_collective_base.py for only two GPU cards available.
test=develop
* fix bug of issue #21259
test=develop
7 years ago
gongweibao
ed2a185248
optimize nhwc for tensor core in ConvOp and ConvGradOp ( #20597 )
7 years ago
Liufang Sang
f0b1518438
add dequantize_abs_max op and modify lookup_table op ( #20899 )
...
* add int8 kernel to lookup_table op and add dequantize op test=develop
* change paddle_enforce to paddle_enforce_eq test=develop
* change copyright and change some not suitable code test=develop
* remove debug log test=develop
* replace GetInputType with IndicateVarDataType test=develop
* fix EmptyGradMaker test=develop
* fix diff between cpu and gpu test=develop
* use memcopy when int8_t test=develop
7 years ago
hutuxian
a6ce2306f9
support cvm_op run in gpu ( #21300 )
...
Previously, CVM OP was only able to run in CPU. This PR implements its GPU kernel.
What's more, we improve the UTs about CVM OP.
7 years ago
Chen Weihang
952508527a
Polish some PE code details ( #21274 )
...
* polish code details, test=develop
* futher polish hint msg, test=develop
7 years ago
Yi Liu
0fd1281ef8
fix bug of issue #21259 ( #21287 )
...
pass the argument `allow_out_of_range` of one_hot op to c++ back end.
7 years ago
xujiaqi01
319d2ba925
fix fs_client_param bug ( #21212 )
...
* fix fs_client_param bug, user can set this config through fleet_desc_file or fleet config
* test=develop
7 years ago
Thunderbrook
0d17c1b816
solve pslib core in stop worker ( #21263 )
...
* general table
* add sparse table
test=develop
* no cvm
test=develop
* add no_cvm
test=develop
* add note
test=develop
* code style
test=develop
* code style
test=develop
* code style
test=develop
* code style
test=develop
* code style
test=develop
* add key of optimizer
test=develop
* solve pslib stop core
test=develop
* barrier
test=develop
* add notes
test=develop
7 years ago
zhongpu
fa4d055098
fix bug for python/paddle/fluid/tests/unittests/test_elementwise_mul_op.py, test=develop ( #21289 )
7 years ago
zhongpu
c4ede95c74
open dygraph op test, test=develop ( #19787 )
...
* open dygraph op test, test=develop
* modify to_variable, test=develop
* modify input and output for dygraph, test=develop
* modify input and output for dygraph(fix bug), test=develop
* fix input processing of dygraph op test, test=develop
* fix bug, test=develop
* fix op test, test=develop
* fix forward bug for dygraph, test=develop
* fix mkldnn op test for forward, test=develop
* update nn.py for dygraph, test=develop
* fix crop_tensor_op, test=develop
* fix elementwise_mul_op, test=develop
* fix fill_op, test=develop
* fix some mkldnn op, test=develop
* open backward op test for dygraph, test=develop
* delete log, test=develop
* close backward op test for dygraph, test=develop
* fix bug for edit_distance_op and test_lstm_cudnn_op, test=develop
* fix optest backward bug for dygraph, test=develop
* fix optest backward bug for dygraph, test=develop
* close backward op test for dygraph, test=develop
* close backward op test for dygraph, test=develop
* open dygraph op test, test=develop
* fix op test for dygraph, fix GradOpDescMaker, test=develop
* fix bug for linear_chain_crf_op.h, test=develop
* remove log, test=develop
* remove log, test=develop
* remove log for op_test.py, test=develop
* remove log for op_test.py, test=develop
* fix bug for var_conv_2d_op, change PADDLE_ENFORCE, test=develop
* fix PADDLE_ENFORCE_EQ for hierarchical_sigmoid_op.cc, test=develop
* fix bug for test_increment_ngraph_op.py, test=develop
* fix lod for op test in dygraph, test=develop
* refactor op_test.py to reduce redundant code, test=develop
* fix lod optest, modify InputVar/OutputVar to HasInput/HasOutput, test=develop
* remove debug log, test=develop
* remove redundant code in base.py, test=develop
* fix some error in optest, test=develop
* fix ClearNoNeedBufferInputs function's bug for LoDTensor, test=develop
* refactor op_test.py, test=develop
* remove redundant writing, test=develop
* fix error(get tensor of the grad variable), test=develop
* fix test_concat_mkldnn test_conv2d_mkldnn, test=develop
* fix optest.py for get tensor of LoDTensor, test=develop
* fix optest.py for get tensor of LoDTensor, test=develop
* fix optest.py for get tensor of LoDTensor, test=develop
* fix some redundant code, test=develop
* reslove conflict and rewrite paddle error message, test=develop
7 years ago
xujiaqi01
eca66f317e
fix fleet util bug ( #21254 )
...
* fix fleet util bug in save paddle inference model
* test=develop
7 years ago
ShenLiang
1f39a9f17e
fix the bug of scatter_nd, test=develop ( #21257 )
7 years ago
lijianshe02
382cf5d7e3
add input type and input data type check for Print_op test=develop ( #21250 )
...
* add input type and input data type check for Print_op test=develop
7 years ago
Thunderbrook
349e82d669
support general embedding params ( #21217 )
...
* general table
* add sparse table
test=develop
* no cvm
test=develop
* add no_cvm
test=develop
* add note
test=develop
* code style
test=develop
* code style
test=develop
* code style
test=develop
* code style
test=develop
* code style
test=develop
* add key of optimizer
test=develop
7 years ago
liym27
b0fc822747
Add control flow api: case ( #21114 )
...
* add control flow API: case. test=develop
* delete 'raise TypeError' in _error_message() and return a string. test=develop
* polish API document. test=develop
7 years ago
juncaipeng
29b63f0aa1
support set model_filename and params_filename in post_training_quantization, test=develop ( #21213 )
...
* support set model_filename and params_filename in post_training_quantization, test=develop
7 years ago
Dong Daxiang
ccbdd7aad0
update worker_num for MPISymetricRoleMaker ( #20798 )
...
test=develop
7 years ago
Liufang Sang
c91cb6c550
fix load checkpoint error in test_reader ( #20924 )
7 years ago
danleifeng
0e7baabe59
extend elementwise broadcast function ( #20957 )
7 years ago
yaoxuefeng
b5d8ba8394
fix data_norm op to avoid impractical normalization result test=develop ( #21152 )
...
* fix auc drop first commit test=develop
* update datanorm op
* update datanorm with enforce test=develop
* update test=develop
* update format test=develop
* update format
* update format test=develop
* add unit test test=develop
* update unit test test=develop
* update format test=develop
* update format test=develop
* update API description test=develop
* update API description test=develop
* update format test=develop
* fix codes as comments test=develop
* fix description as comments test=develop
* fix description as comments test=develop
* update codes.. test=develop
7 years ago
Zeng Jinle
67e88424e5
Polish jit trace codes ( #21218 )
...
* polish jit trace codes, test=develop
* polish codes again by removing var_id, test=develop
7 years ago
Zeng Jinle
cdb3d27985
Fix warn of gcc8 ( #21205 )
...
* fix warnings oof gcc 8 compilation, test=develop
* fix boost::bad_get, test=develop
* refine PADDLE_ENFORCE, test=develop
7 years ago
danleifeng
3fe63d6780
add store_true to use_paddlecloud argument in launch.py ( #21168 )
7 years ago
Zhang Ting
9cbe7bccba
modified error message and API doc for channel_last supported Op ( #21002 )
...
* modified error message for conv and conv_transpose, test=develop
* modified doc of conv and conv_transpose op, test=develop
* modified the expression for error message, test=develop
* modified error message for group_norm op, test=develop
* modified detail of Attr(data_format) or Attr(data_layout)
* add ValueError in API doc for maxout op, test=develop
7 years ago
liym27
9247528252
Control flow API: switch_case ( #21103 )
...
* add API switch_case. test=develop
add Nest
* modify code according to reviews:
1.Attr(branch_index) support 'uint8' and 'int64' besides 'int32'.
2.remove useless code.
test=develop
* replace fluid.layers.data with fluid.data and polish API document. test=develop
7 years ago
guofei
56b5d14704
Fix the error of init variable in StaticRNN when stop_gradient=ON ( #21118 )
7 years ago
WangXi
3c98ec90ce
Fix INF bug of softmax_cross_entropy_op ( #21165 )
7 years ago
Zeng Jinle
0f30d3a213
fix dygraph trace bug, test=develop ( #21193 )
7 years ago
juncaipeng
00b11a4a1e
Support more ops in post training quantization, test=develop ( #21073 )
...
* Support more ops in post training quantization, and save the output scale in quantized op.
* Update docs in post training quantization and qat
7 years ago
xujiaqi01
23876de55b
fix cache table bug, add save_paddle_inference_model, fix hdfs util bug ( #21052 )
...
* fix cache table bug
* add save_paddle_inference_model
* fix hdfs util bug
* test=develop
7 years ago
xujiaqi01
9e045170c0
add copy table ( #21086 )
...
* copy some feasigns and corresponding embeddings from one sparse table to another
* copy all feasigns and corresponding embeddings from one sparse table to another
* copy all dense params from one table to another
* copy some local vars to other local vars
7 years ago
ruri
aeb887911f
Refine edit distance cn ( #21121 )
7 years ago
Kaipeng Deng
98b59cb82c
fix elementwise_mod float point kernel. test=develop ( #21183 )
7 years ago
hong
835119c777
disable reshape inplace in dygraph model; test=develop ( #21157 )
7 years ago
Zeng Jinle
5fdfbe3413
Add friendly dygraph trace API ( #21091 )
...
* friendly trace interface, test=develop
* refine TracedLayer, test=develop
* add some docs, test=develop
7 years ago
whs
cfdd1fc2cd
Fix warpctc in padding mode. ( #21033 )
7 years ago
Tao Luo
3976bbe2ce
add input type and dtype check template, and update some APIs check ( #21161 )
...
* add input type and dtype check template, and update some APIs check
* refine check template, and update some APIs check in nn.py
* update some APIs check in loss.py
test=develop
7 years ago
joanna.wozna.intel
37e0e7a96b
QAT int8 accuracy little improvement ( #21074 )
...
test=develop
7 years ago
gongweibao
a5fc291fe5
Use 2 cards for hallreduce unit test. ( #21085 )
...
use 2 cards test=develop
7 years ago
Tao Luo
8f659d4345
Split some APIs from nn.py to loss.py ( #21117 )
...
* Split some APIs from nn.py to loss.py
test=develop
* fix test_detection unit-test
test=develop
7 years ago
zhaoyuchen2018
4a544762a2
Add Asypadding for conv fusion. ( #21041 )
...
* Add Asypadding for conv fusion.
test=develop
reference: pr/20042
* Fix eigen build link error
* Change back file mode
* Use math function & add more checks.
7 years ago
WangXi
de5d3ff688
Fix dgc buffer illegal & reuse velocity ( #21012 )
7 years ago
lilong12
53148e0696
modify the implementation of save_persistables and save_inference_model for fleet collective mode ( #20802 )
...
* modify the implementation of save_persistables and save_inference_model functions for fleet collective, test=develop
* add ut, test=develop
7 years ago
Bai Yifan
bd8b0ebaba
fix distiller typo, test=develop ( #21070 )
7 years ago
ceci3
f62a929151
fix instance norm ( #21042 )
...
* fix instance norm
* update unitest,test=develop
7 years ago
lilong12
e249d9a3e2
fix the computation for dx (grad for x) for prelu operation. ( #20949 )
...
* set the default value of alpha for prelu to 0.25, test=develop
* add the call to __syncthreads(), test=develop
* fix the implementation of cpu prelu, test=develop
* repair the implementation of element mode prelu, test=develop
* modify test_prelu_op.py, test=develop
7 years ago
Huihuang Zheng
e64d55f04e
Add basic Python Cond Layer ( #21050 )
7 years ago
Huihuang Zheng
dcf371b685
Disable cudnn_conv in unit tests. ( #21080 )
7 years ago
Yiqun Liu
35f17ae28f
Add the check of lod_level between compile-time and runtime. ( #20961 )
...
* Add the check of lod_level between compile-time and runtime.
test=develop
* Fix bug in check_compile_vs_runtime.
test=develop
* Fix the check of output when it is dispensiable or intermediate.
test=develop
* Share lod of x to out in match_matrix_tensor op in compile-time.
* Implement GetLoDLevel in InferShapeContext.
* Set the default value of check_compile_vs_runtime to False and enable it in test_sequence_pad_op.
test=develop
* Enable check_compile_vs_runtime in test_match_matrix_tensor.
* Add the implementation of SetLoDLevel in InferShapeContext.
* Remove the implementation of IncreaseLoDLevel and call Get/SetLoDLevel instead.
* Remove the implementation of DecreaseLoDLevel and call Set/GetLoDLevel instead.
* Refine some ops and unittests.
test=develop
* Fix a typo.
test=develop
* Remove the check of var type, and change int to int32_t.
test=develop
* Add unittest for Get/SetLoDLevel.
test=develop
7 years ago
Tao Luo
78cc1ca616
Split some APIs from nn.py to rnn.py and sequence_lod.py ( #21030 )
...
* split some APIs from nn.py to rnn.py
* split some APIs from nn.py to sequence_lod.py
test=develop
* fix unit-test bug
test=develop
* fix test_layers unit-test bug
test=develop
7 years ago
joanna.wozna.intel
77c2083586
Add transpose2 INT8 for mkl-dnn ( #19424 )
...
* Add transpose2 INT8 for mkl-dnn
test=develop
* Fix test_transpose_int8_mkldnn
test=develop
* Revert "Merge branch 'develop' into transpose_int8_mkldnn_2"
This reverts commit 34011bdba4c859abb945e062ab13124f70508054, reversing
changes made to 2ce6473f144da298aba4a43d46918f27d463cf7c.
* Revert "Revert "Merge branch 'develop' into transpose_int8_mkldnn_2""
This reverts commit 23754dd78ca47ae56881161172b2aacd349aba90.
* Add template to TransposeMKLDNNHandler
test=develop
* Resolve conflict
test=develop
* Restore get_size and refactor
test=develop
7 years ago
juncaipeng
2c07727fb0
delete test resnet50 in post train quantization to avoid timeout error, test=develop ( #21081 )
7 years ago
LielinJiang
06063b7001
add op locality_aware_nms, test=develop ( #20976 )
7 years ago
liym27
26a6e27afe
fix bug in pool/conv/conv_transpose: UpdatePaddingAndDilation, _get_padding_with_SAME and conv2dtranspose_forward_naive. ( #20997 )
...
* fix bug in pool/conv/conv_transpose:
1. It should be stride[i] not stride[0] in UpdatePaddingAndDilation;
2. fix bug of func _get_padding_with_SAME in test_conv/conv_transpose_op.py;
3. fix bug of the computation process in function conv2dtranspose_forward_naive.
test=develop
* change test to make the data of different dimensions different. test=develop
7 years ago
Adam
3fda695bb0
Add support for asymetric padding in MKLDNN pool, conv and conv_transpose ( #21062 )
...
* Add asymetric padding support for mkldnn pooling
test=develop
* Add asymetric padding support for mkldnn conv
test=develop
* Add asymetric padding support for mkldnn conv_transpose
test=develop
7 years ago
Huihuang Zheng
1957192f05
Add select_input_op and select_output_op ( #21016 )
...
These ops are useful in control flow.
7 years ago
hong
72e0969b27
fix uniform random ( #21009 )
...
* fix uniform random; test=develop
* add uniform random test; test=develop
7 years ago
Wojciech Uss
226bc22a29
Remove fuse_with_relu argument from batch_norm constructor ( #21028 )
...
test=develop
7 years ago
liym27
f0e95a6049
Polish error messages of pool_2d/3d and add Raises in English document. test=develop ( #21017 )
7 years ago
juncaipeng
fa522dffa0
Fix bug in add_quant_dequant_pass, test=develop ( #21018 )
...
* Fix bug for inserting add_quant_dequant_op to same variable repetitively in add_quant_dequant_pass, test=develop
7 years ago
juncaipeng
175ba39c03
Add post_training_quantization ( #20800 )
...
* add post training quantization, test=develop
* specify the quantizable op type, test=develop
7 years ago
Leo Chen
008ed65fd5
Add c++ global current tracer for dygraph ( #20882 )
...
* Add c++ global current tracer for dygraph, test=develop
* add tracer property in c++, test=develop
* support different place, test=develop
* add unittest for tracer, test=develop
7 years ago
Huihuang Zheng
4cf96cd307
Add grad_name Property for Class Variable ( #20991 )
7 years ago
xujiaqi01
1d1a07937a
simplify master+patch,remove ins when size != merge_size or has conflict slot ( #20913 )
...
* remove duplicate code and duplicate config of master+patch
* drop all ins which has conflict slot or size < merge_size
* user only need to set merge size,if ins num of same id is not equal to merge size, just drop these ins
* user must make sure master data and patch data has no same slot whose feasigns are both non-zero, otherwise these ins will be dropped. (slot list should still be the same of both master and patch)
* test=develop
7 years ago
Thunderbrook
5970e8ac5e
find lookup table in order ( #20932 )
...
test=develop
7 years ago
Zhang Ting
de9bec607e
lrn supports channel_last input, test=develop ( #20954 )
7 years ago
tangwei12
3b96e3d20a
fix FetchHandler ( #20900 )
...
* bug fix, test=develop
7 years ago
Dong Daxiang
a6747a6ef1
add launch_ps module so that we can launch a parameter server trainin… ( #20936 )
...
* add launch_ps module so that we can launch a parameter server training job
1) a user can specify worker_num and server_num
2) parameter server can be killed after all workers exit
3) unit test is added
test=develop
7 years ago
Leo Chen
2c3c579b9b
tensor.set() supports array list and remove unused code, test=develop ( #20959 )
7 years ago
Leo Chen
9974e40787
Update Tensor.set() to support float16 ( #19964 )
...
* don't expose numerous Tensor.set(), test=develop
* fix condition, test=develop
* fix float16 bug, test=develop
* feed should be Tensor or np.array, not Variable or number, test=develop
* use forcecast to copy numpy slice to new array, test=develop
* remove float16-uint16 hacking, test=develop
7 years ago
123malin
20cdff0e02
Optimize decay ( #20816 )
...
* update pserver decay blocks
* update distributed notify handler
7 years ago
Chengmo
16596f6498
Fix Paddle Cloud role maker ( #20860 )
...
* fix PaddleCloud Role maker & add warning in distribute transpiler & change rpc_retry_times
7 years ago
liym27
59de8e1214
Compatible int32 and int64 for attr in concat/split/unsqueeze. test=develop ( #20912 )
7 years ago
liym27
7b4cb655bb
keep the size of symmetric padding is 2 for 2d and 3 for 3d. test=develop ( #20903 )
7 years ago
Zhang Ting
8d1e9f0f7e
maxout supports channel_last input ( #20846 )
...
* maxout support channel_last input, test=develop
* modified details of Input(X) and Attr(groups, axis) in doc, test=develop
7 years ago
WangXi
9d8ec42353
launch.py remove setting for nccl sync, test=develop ( #20909 )
7 years ago
hong
8c4573a3cb
GradMaker for dygraph ( #19706 )
...
* refactor dygraph,test=develop
* fix failed unittest,test=develop
* polish code,test=develop
* check windows ci error,test=develop
try to fix windows ci error by np.allclose,test=develop
* polish vlog and profiler, test=develop
* try to fix preceding ops order,test=develop
* test transformer in windows ci, test=develop
* use python c-api to speed up tracer.trace,test=develop
* test=develop, fix docker with paddle nccl problem
* test=develop, add ut for debug string and gradient_accumulator
* test=develop, add tests for layer/gradient_accumulator/prepared_op
* test=develop, fix complie error for test_prepared_op
* test=develop, add more ut for dygraph
* test=develop, create API.spec for dygraph api change
* optimize grad maker; test=develop
* optimize grad maker
* test
* grad make optim; test=develop
* fix unittest bugs; test=develop
* add dygraph grad op maker and split_op
* grad op maker refactor; test=develop
* add dygraph grad maker; test=develop
* fix op deformable_conv_v1_op bug; test=develop
* fix deformable_conv prroi pool bugs;
* fix new op grad op maker bug; test=develop
* fix split by ref bug; test=develop
* fix dygraph auto prune bug; test=develop
* fix test_trace bug; test=develop
* fix fused emb seq pool bug; test=develop
* remove useless code in op_desc file; test=develop
* remove useless code, StrVarBaseNode; test=develop
* fix review issues; test=develop
* fix rank_loss grad maker; test=develop
* remove flag in VarBase; test=develop
* fix distributed_notify_op compile bug ; test=develop
* fix reshape op double grad; test=develop
* fix expand as op; test=develop
* add impertive type_defs.h for demo_train; test=develop
* fix inference lib cmake; test=develop
* fix inference lib; test=develop
* fix infernce_lib; test=develop
* fix inference cmake; test=develop
* fix inference lib; test=develop
* fix inference lib; test=develop
* remove condition dygraph grad maker, modify local name; test=develop
* fix split grad maker bug; test=develop
* fix pyramid_op bug; test=develop
* change travis time out limit; test=develop
* restore travis; test=develop
* change timeout limit; test=develop
7 years ago
Bai Yifan
ac87d4e6e1
fix hdfs.download, test=develop ( #20907 )
7 years ago
Thunderbrook
59bcdc8a19
support dump param of model into afs ( #20302 )
...
* support dump param to afs
test=develop
* code style
test=develop
* code style
test=develop
* dump param
test=develop
* dump param
test=develop
* dump param
test=develop
* dump param
test=develop
7 years ago
Yiqun Liu
16e4d02675
Refine the cache of program, context and scope in executor. ( #18483 )
...
* Refine the cache of program, context and scope in executor.
test=develop
* Refine the unittest test_executor_and_use_program_cache.
* Add the test the PaddingRNN with use_program_cache=True.
test=develop
* Remove a check.
test=develop
* Refine the unittest to check whether it is correct when setting use_program_cache=True.
test=develop
7 years ago
Wilber
b489760099
fix jit_matmul bug test=develop ( #20886 )
...
* fix jit_matmul bug
* update jit matmul and add test
7 years ago
gongweibao
3255fe69bb
Add custom black variable name set in amp interface. ( #20875 )
...
* add custom black varname test=develop
* fix dtype test=develop
* fix num test=develop
* fix ut test=develop
* fix coverage test=develop
* fix blackvar names test=develop
7 years ago
lvmengsi
aadd81b662
Fix gradients ( #20857 )
...
* fix_gradients
* fix_gradients, test=develop
7 years ago
hong
ff0886a92a
save load problem fix and new feature add ( #20823 )
...
* fix persistable;
* fix save load bugs; test=develop
* fix bug; test=develop
* add example for new io api; test=develop
* addd example; test=develop
7 years ago
Youwei Song
2058bab1c0
Add Sequential api ( #20789 )
...
* add Sequential api
test=develop
* fix unittest
test=develop
* refine code sample
* test=develop
7 years ago
liym27
6802539a2e
support Tensor for split and concat, support -1 in num_or_sections, add check num_or_sections ( #20780 )
...
* improve split and concat op:
1. support Tensor for argument 'dim' in split op.
2. support Tensor for argument 'axis' in concat op.
test=develop
* redefine function GetDataFromTensor and set unknown output shape to - 1.
test=develop
* add check: Attr(sections) match Input(X). test=develop
* support Tensor for attr(sections) and attr(sections) can contain -1.
add check for attr(sections).
test=develop
* modify error message for concat and call Resize only when necessary. test=develop
7 years ago
Yiqun Liu
6fcfd32e6c
Check and correct the output's lod_level in DynamicRNN related operators ( #19144 )
...
* Refine the InferShape of ReadFrom and WriteTo op, and add comment to explain why not call ShareLoD for runtime.
test=develop
* Add comment for ReorderLoDTensorByRank op.
* Add comment for lod_tensor_to_tensor_array op to explain why only call DecreaseLoDLevel for compile time.
test=develop
* ShrinkRNNMemory op should call ShareLoD for compile time.
test=develop
* Add the implementation of IncreaseLoDLevel and add the compile-time check of lod_level in InferShape of sequence_pool.
test=develop
* Refine the unittest of DynamicRNN.
test=develop
* Change PADDLE_ENFORCE to PADDLE_ENFORCE_NE.
test=develop
7 years ago
Zeng Jinle
da9e9dd07f
fix py_reader combination ut, test=develop ( #20861 )
7 years ago
liym27
84d221b667
improve unsqueeze op to support int, Tensor for argument axes ( #20824 )
...
* improve unsqueeze op to support int, Tensor and Tensor list for argument axes.
test=develop
* call Resize only when necessary. test=develop
7 years ago
silingtong123
03d7f3ddb2
Make shape tensor support int32 ( #20757 )
...
* Make shape tensor support int32
7 years ago
Huihuang Zheng
95ba4bd2ab
Add shape and type check at read_op ( #20754 )
7 years ago
Aurelius84
aacd16dbb4
add pyramid_hash_op ( #20698 )
7 years ago
Yang Zhang
cf670ec9ce
Serialize to pickle format ( #20820 )
...
test=develop
7 years ago
whs
c8e49be2f1
Fix roi_perspective_transform op ( #20764 )
7 years ago
Bai Yifan
6bdf99d37a
fix dcn doc about Mask introduction, test=develop, test=document_fix ( #20836 )
7 years ago
Bai Yifan
fd5321b3f3
modify slim print precision to round(,6), test=develop ( #20833 )
7 years ago
WangXi
e78d7f57bb
Print the rank which trainer is error in launch.py, test=develop ( #20838 )
7 years ago
xujiaqi01
48669aa8f0
fix several sparse table issuses ( #20686 )
...
* no longer need to define all embedding layers (no one less) of all slots in each program. make trainer_param repeated in ps.proto.
* add find_distributed_lookup_table_grads instead of hard code GRAD
* support embedding stop gradient. push sparse has error before fix this.*
* fix fill sparse, skip slots which do not have embedding. each slot's embedding in a sparse table should be used in all training programs before fix this.
* fix pull sparse, skip slots which do not have embedding.
* fix collect feasign label info, skip slots which do not have embedding.
* support when there are multi sparse tables in one or multi training programs, each program can pull/push its own related sparse tables instead of all sparse tables.
* test=develop
7 years ago
whs
fa67e6e83e
Fix unitest of pruning in python3 env. ( #20825 )
...
test=develop
7 years ago
Zeng Jinle
378fc4fb1c
add some docs to jit.trace, test=develop ( #20811 )
7 years ago
Zhang Ting
5a8d885d72
All elements in attr(shape) of crop_tensor can be -1 and int32/64 kernel registered ( #20756 )
...
* All elements in attr(shape) of crop_tensor can be -1, test=develop, test=document_preview
* fix the bug that attr(offsets) should be initialized, test=develop
7 years ago
pkpk
370f0345b6
fix the bug in data_feeder.py ( #20791 )
...
* test=develop
* test=develop
* test=develop
* test=develop
7 years ago
Tao Luo
efbdad0596
make search_compute support avx default ( #20779 )
...
* make search_compute support avx only
* clean search_compute.h
* rename sse_axpy to avx_axpy
test=develop
* update CMakeLists.txt
test=develop
7 years ago
WangXi
250e72d254
Fix DGC algorithm flow to make it the same as paper ( #20758 )
7 years ago
Zeng Jinle
8ff6b289bd
[Dygraph to static graph]JIT/Trace ( #20775 )
...
* jit/trace 1st version, test=develop
* add more unittests, test=develop
7 years ago
Aurelius84
28dd2a58df
refine Categorical and MultivariateNormalDiag en doc ( #20723 )
...
* refine Categorical and MultivariateNormalDiag en doc test=develop, test=document_fix
* refine Categorical and MultivariateNormalDiag en doc test=develop, test=document_fix
7 years ago
Tao Luo
2f5f19dfb5
mv sampcd_processor.py to tools/ ( #20761 )
...
* mv sampcd_processor.py to tools
test=develop test=document_fix
* update example script
test=develop test=document_fix
7 years ago
石晓伟
37cd43545a
update the infer shape of matmul, test=develop ( #20717 )
...
* update the infer shape of matmul, test=release/1.6
* add unittests of matmul, test=release/1.6
* change func names, test=develop
7 years ago
gongweibao
e425124041
Wait pserver to complete initialization. ( #20777 )
7 years ago
zhongpu
702aad5a0a
remove assert statement to support sqeeze op in drgraph, test=develop ( #20763 )
7 years ago
gongweibao
8088395a84
Set unique port to every distribute test to avoid potential port conflicts ( #20759 )
7 years ago
wangchaochaohu
0687bcd64f
Refine getitem of Variable ( #20729 )
...
* add support for __get_item__ of Variable test=develop
7 years ago
Zhang Ting
483d0512ce
Add choice of CUDA Place and remove fluid.layers.data for python API test of resize Ops ( #20689 )
...
* add cuda place and remove fluid.layers.data for test of python API, test=develop
* add cuda place and remove fluid.layers.data for test of python API, test=develop
* modified batch size for Python API test, test=develop
7 years ago
danleifeng
79e08ecebf
add assertions on whether elementwise_div divison is zero ( #20618 )
7 years ago
bingyanghuang
fd49ebcbd8
update int8 benchmark with 6271 data, test=develop test=document_fix ( #20736 )
7 years ago
123malin
95e90aa102
test=develop, add communicator_is_sgd_optimizer flag ( #20677 )
...
* test=develop, communicator_is_sgd_optimizer flags
7 years ago
Aurelius84
74a28f5ea4
fix fill_constant shape with -1 and enhance cross_entropy test=develop ( #20722 )
7 years ago
wangguanzhong
9a3e22aad4
move nms2 to contrib, test=develop ( #20709 )
7 years ago
Zhang Ting
80c97e560d
fix bias_attr's bug of conv and conv_transpose, test=develop ( #20704 )
7 years ago
xujiaqi01
5223b0dd9d
add check nan / inf in downpour worker ( #20694 )
...
* add check nan / inf in downpour worker during training
* test=develop
7 years ago
WangXi
507afa8a8a
Fix dgc nan by stripping nccl from sparseReduce. ( #20630 )
7 years ago
gongweibao
c1710e91b2
Disable GRPC_ARG_ALLOW_REUSEPORT to avoid potencial problem. ( #20690 )
7 years ago
tangwei12
1d925440ca
fix fetch handler error with pslib ( #20679 )
...
* fix fetch handler error with pslib
* fix distributed lookup table op with 1 pserver
7 years ago
gongweibao
78431dc7bc
Add detail log on parallel dygraph unit test when failed. ( #20660 )
7 years ago
juncaipeng
f201b465ec
Move pool2d to add_quant_dequant_pass, test=develop ( #20586 )
...
* move pool2d to add_quant_dequant_pass, test=develop
7 years ago
zhongpu
efa10937bd
fix elementwise_floordiv_op and elementwise_mod_op ( #20534 )
...
* fix elementwise_floordiv_op and elementwise_mod_op, test=develop
* fix API.spec, test=develop
* fix API.spec, test=develop
7 years ago
Bai Yifan
ffec9195e4
soft_label_distiller fix, test=develop ( #20645 )
7 years ago
gongweibao
f3f52fc1e2
Retry when failed to bind address. ( #20642 )
7 years ago
qingqing01
01eddc1a04
Support fp16 in GPU impl of fused_elemwise_activation_op. ( #20636 )
...
* Support fp16 in fused_elemwise_activation_op.
* Fix unit testing in ONLY-CPU mode.
7 years ago
Tao Luo
ea20f8be23
refine error message of input TypeError in framework.py ( #19970 )
...
* refine error message of input TypeError in framework.py
test=develop
* refine error message
test=develop
* update test_compare_op.py unit-test to improve coverage
test=develop
7 years ago
Chengmo
940c6ff1c8
Fix communicator slow bug & fix communicator stop bug ( #20366 )
...
* test=develop,Fix communicator slow bug
* test=develop, delete if() in stop_worker()
* test=develop
* fix UT, test=develop
* fix bug in fetch handler, test=develop
* fix bug in fetch handler, test=develop
* test=develop, fix fetch barrier bug
* test=develop, bug fix
* test=develop, bug fix
* test=develop, fix bug
7 years ago
liym27
ae4ddbc821
add fill_constant input(shape) dtype check. test=develop ( #20620 )
7 years ago
123malin
b4a3b75002
bug fix: invalid learning rate decay in pserver async mode ( #20325 )
...
* bug fix: invalid learning rate decay in pserver async mode
7 years ago
WangXi
cadc6a9704
fix dgc test and bug when not set trainers_endpoints_, test=develop ( #20617 )
7 years ago
danleifeng
46797f53de
fix small bug of error message for elementwise_add and elementwise_mul ( #20619 )
...
* fix error message for elementwise_add/mul;test=develop
* fix type error message;test=develop
7 years ago
Liufang Sang
bc4af386f4
[PaddleSlim] refine slim reader to support dataloader ( #20604 )
7 years ago
石晓伟
a4753f3a79
Optimize error message of mean_op and matmul_op ( #20413 )
...
* add data type check, test=develop
* polish error messages, test=develop
* polish error messages, test=develop
* Remove support for the CPU architecture matmul, test=develop
* fix syntax bug, test=develop
7 years ago
mapingshuo
f55d1c6867
Fleet: deal with special case: strategy is None ( #20359 )
...
* special case: strategy is None
7 years ago
gongweibao
1d82025e89
Add interface so user can get scaled loss when they use customized loss. ( #20571 )
7 years ago
翟飞跃
36acfaeeda
Add fused_embedding_seq layer into fluid.contrib ( #19771 )
7 years ago
zhupengyang
01209b5161
add input type and dtype check for cast_op ( #20070 )
...
* add input type and dtype check for cast_op
test=develop
* fix annotation
test=develop
* support more data type
test=develop
* fix bug for fill_constant's error type
test=develop
* improve converage
test=develop
* improve converage
test=develop
7 years ago
Youwei Song
67fcb0c923
fix api fluid.cuda_pinned_places ( #20424 )
...
* fix api fluid.cuda_pinned_places, test=develop
* fix api fluid.cuda_pinned_places, test=develop
7 years ago
Thunderbrook
f76a32df4a
dump fix dov vec file num ( #20539 )
...
* support dump multi file
test=develop
* dump fix num file
test=develop
7 years ago
gongweibao
bf6470c71e
Add detail logs on resnet unit test ( #20558 )
...
Add detail logs on resnet unit test
7 years ago
chengduo
36c85ef492
Add sub-scope check in RecurrentOp ( #20468 )
...
* fix recurrent bug
test=develop
7 years ago
633WHU
12e4be0382
Dlpack support ( #20039 )
...
* support dlpack to tensor and implement python interface test=develop
* add unittest for _to_dlpack and from_dlpack test=develop
7 years ago
zhupengyang
5e65c753ea
enhance input type chec for concat ( #20584 )
...
test=develop
7 years ago
JesseyXujin
2ff18e537f
add expand_as op, test=develop ( #20565 )
...
* add expand_as op, test=develop
* add expand_as op,test=develop
* add expand_as op,test=develop
* add nn.py, test=develop
* delele paddle_enforce, test=develop
7 years ago
lijianshe02
5c41805dc9
update mul_op input data type check test=develop ( #20552 )
7 years ago
Zeng Jinle
40effc61af
Refine py_reader exit ( #20331 )
...
* refine py_reader exit, test=develop
* fix multiprocess_reader exception unittest, test=develop
* increase code coverage for legacy fluid.layers.py_reader, test=develop
7 years ago
Guo Sheng
bd99df715a
Fix basic_gru and docs of gru_unit and dynamic_gru ( #19393 )
...
* Fix docs of gru_unit and dynamic_gru.
Fix basic_gru in rnn_impl.py.
Add error messages for param_attr setting in layer_norm api.
Add int64 dtype for expand.
test=develop
* Reopen unit-tests of basic_gru/basic_lstm in rnn_impl.py.
test=develop
* Add unit test for layer_norm api.
test=develop
* Remove the deprecated gru doc fix. test=develop
* Fix basic_gru test coverage. test=develop
* Update API.spec. test=develop
* Update API.spec. test=develop
* Fix test_basic_gru coverage test. test=develop
* Update test_basic_gru in test_layers to use fluid.data
test=develop
* Update test_basic_gru for coverage. test=develop
7 years ago
Yuan Shuai
172e91c008
Refine error message of transpose_op ( #20437 )
...
* Refine error message of transpose.
* Fix transpose, multiplex, unsqueeze, unstack. test=develop, test=document_preview, test=document_fix
7 years ago
hong19860320
f567214b6a
Fix the error message of zeros op ( #20476 )
...
* fix the error message of zeros op
test=develop
* Fix unittest of zeros op
test=develop
7 years ago
liym27
fc6ec3b9f6
fill_constant support Tensor; ( #20521 )
...
2. fix bug in backward.py: using fill_constant instead of fill_constant_batch_size_like
3. fix bug in ExpandGradOp.
test=develop
7 years ago
Zhang Ting
0130cc969c
fixed group_norm's bug and modified unittest ( #20506 )
...
* modified group_norm's unittest for pass statement, test=develop
* fix group_norm's bug: scale or bias is None which causes segmentation fault, test=develop
7 years ago
Guo Sheng
c7ae6c62cd
Fix the assign data check ( #20564 )
...
* Fix the assign data check. test=develop
* Fix test_assign_op.py. test=develop
7 years ago
Diego Zhang
27d1ef6081
Refine seq enum expand mask pad ( #20344 )
...
* disable nccl test
* Update version.
* fix term core only
* fix transpiler error
* fix protobuf memory leak (#11177 )
fix protobuf memory leak
* "change eigen mirror"
* refine en doc sequence enum pad expand mask d2s
* refine seq enum expand mask pad test=develop, test=document_fix
* remove cn char test=document_fix
* spec test=document_fix
* code style test=document_fix
* test=document_fix
* test=document_fix
* test=document_fix
* test=document_fix
* test=document_fix
* test=document_fix
7 years ago
Youwei Song
9a09ff14a5
fix en docs of Layer and guard ( #20512 )
...
* fix en docs of Layer and guard
test=document_fix, test=develop
* fix en docs of Layer and guard
test=document_fix, test=develop
* minor fix
test=document_fix, test=develop
* minor fix
test=document_fix, test=develop
* fix api.spec
test=document_fix, test=develop
* fix api.spec
test=document_fix, test=develop
* fix docs
test=document_fix, test=develop
* fix docs
test=document_fix, test=develop
* fix docs
test=document_fix, test=develop
* fix api.spec
test=document_fix, test=develop
* fix api.spec
test=document_fix, test=develop
* add forward doc
test=document_fix, test=develop
* add "s" for parameters
test=document_fix, test=develop
7 years ago
guofei
9b85f40140
Modify English documents ( #20452 )
7 years ago
liuwei1031
9dc83dda7a
update data feeder API sample, change fluid.layers.data to fluid.data ( #20568 )
...
* update data feeder API sample, fluid.layers.data => fluid.data
* update API.spec
7 years ago
liuwei1031
9d6ee5eb1f
fix doc of default_main_program, multiprocess_reader ( #20536 )
...
* fix doc of default_main_program, multiprocess_reader
* update API.spec
* fix comment
7 years ago
Yiqun Liu
ce1b25cc8b
Polish the English documentation of sums ( #20495 )
...
* Refine the documentation of sums.
* Remove Chinese comments and update API.spec.
* Refine the description of input argument.
* Update API.spec.
test=develop
test=document_fix
7 years ago
lanxianghit
22ecaef03b
Add API 'fluid.requird_version(min_version, max_version=None)' to check if the installed PaddlePaddle version is satisfied, test=develop ( #20263 )
...
添加API:fluid.version_required(min_version, max_version=None),用于检查已安装的PaddlePaddle版本是否符合要求
无返回值,如果已安装的版本不在区间[min_version, max_version],则抛出异常。
例:安装的版本为1.6.0,调用:fluid.require_version('1.5.0', '1.5.1'),则抛出异常:
Exception: VersionError: PaddlePaddle version in [1.5.0, 1.5.1] required, but 1.6.0 installed.
7 years ago
zhaoyuchen2018
8fb569e5b9
Fix api doc example bug and polish square doc ( #20491 )
...
* Refine create_array api en doc
test=develop
test=document_fix
* Fix api doc example bug and polish square
test=develop
test=document_fix
* Refine comment
test=develop
test=document_fix
* refine API.spec
test=develop
test=document_fix
7 years ago
hong19860320
512c0bb04d
refine the en api doc of ones, zeros, reverse, assign, increment, hsigmoid and create_py_reader_by_data ops ( #20343 )
...
* refine the en api doc of ones, zeros, reverse, increment, hsigmoid and create_py_reader_by_data ops
test=develop, test=document_preview, test=document_fix
* refine eng doc for hsigmoid and create_py_reader_by_data ops
test=develop, test=document_preview, test=document_fix
* update API.spec
test=document_fix
* Fix the parameter name axis of reverse op in eng doc
test=develop, test=document_fix
* Update API.spec
test=develop, test=document_fix
* Refine eng doc of zeros, ones, reverse and assign op
test=develop, test=document_fix
* Update API.spec for assign, ones, zeros and reverse
test=develop, test=document_fix
* Fix data type of reverse op in eng doc
test=develop, test=document_fix
* Update API.spec for reverse op
test=develop, test=document_fix
7 years ago
Guo Sheng
dfd1eee7f7
Add seq2seq api related code ( #19820 )
7 years ago
silingtong123
e87cabb7f2
updates document of sequence_softmax, sequence_scatter, sequence_unpad ( #20269 )
7 years ago
silingtong123
eb5c33cb8c
Add uniform random unittest ( #20485 )
...
* test=develop, add unittest of seed failed work
* test=develop, add unittest of seed failed work
7 years ago
silingtong123
d5aa2dd818
fix doc, updates API documents of uniform_random and uniform_random_batch_size_like ( #20316 )
7 years ago
zhang wenhui
b521992041
fix converter , test=develop ( #20522 )
7 years ago
liym27
5219efb14f
fix reshape input(x) error check on float16. test=develop ( #20529 )
7 years ago
Double_V
8299203370
Support reshape_op double gradient ( #20304 )
...
* support reshape doubel grad, test=develop
* fix reshape double grad, pass converage, test=develop
* fix review, test=develop
7 years ago
LielinJiang
faa8e30a14
Set batch norm and data norm argument 'do_model_average_for_mean_and_var' default as True ( #20421 )
...
* fix_norm_model_average_bug
* test=develop
* refine comment test=develop
* refine comment test=develop
7 years ago
hong19860320
4d0d5e4cc7
refine eng doc for hard_sigmoid op ( #20442 )
...
* refine eng doc for hard_sigmoid op
test=develop
test=document_fix
* refine the description of hard_sigmoid
test=develop
test=document_fix
* update API.spec
test=document_fix
* Refine the decription of parameters of HardSigmoid op
test=develop, test=document_fix
* Update API.spec for hard_sigmoid op
test=develop, test=document_fix
7 years ago
Aurelius84
22823df2e2
enhance embedding error message test=develop ( #20246 )
...
* enhance embedding error message test=develop
* enforce .h error test=develop
* fix unittest code test=develop
* Fix fp16 dtype in embedding test=develop
* add import warnings test=develop
7 years ago
hong19860320
9707ded37e
Fix the error message of assign op ( #20508 )
...
* Fix the error message of assign op
test=develop
* Refine input type checking for assign op
test=develop
* Refine unittest of assign op
test=develop
7 years ago
zhupengyang
3997743a5b
add input type and dtype check, enhance shape error message for concat_op ( #20101 )
...
* add input type and dtype check, enhance shape error message for concat_op
test=develop
* enhance shape check
test=develop
* improve coverage
test=develop
7 years ago
zhupengyang
95524a4d30
fix APIs: relu, relu6, hash ( #20416 )
...
* fix APIs: relu, relu6, hash
test=develop
test=document_fix
* fix relu6 doc
test=develop
test=document_fix
* fix API.spec
test=develop
test=document_fix
* add description link for hash
test=develop
test=document_fix
7 years ago
liuwei1031
70ff903813
improve the doc of data feeder related APIs ( #20515 )
...
* improve data feeder related API
7 years ago
zhaoyuchen2018
057bce4d45
Refine topk stack squeeze api en doc ( #20367 )
...
* Refine topk stack squeeze api en doc
test=develop
test=document_fix
Signed-off-by: zhaoyuchen <zhaoyuchen01@baidu.com>
* Refine api en doc
test=develop
test=decument_fix
Signed-off-by: zhaoyuchen <zhaoyuchen01@baidu.com>
* refine api.spec and returns
test=develop
test=document_fix
Signed-off-by: zhaoyuchen <zhaoyuchen01@baidu.com>
7 years ago
JesseyXujin
843bdbaae1
add input type and dtype check for accuracy_op ( #20399 )
...
* add input type and dtype check for accuracy_op
* add input type and dtype check for accuracy_op
* modify python error on accuracy_op,add test=develop
* modify details on accuracy_op, test=develop
* test float16, test=develop
* add warning, test=develop
7 years ago
bingyanghuang
a5f530a8f9
Update QAT MKL-DNN readme doc ( #20029 )
7 years ago
chengduo
f23eeeb460
update global scope doc ( #20483 )
...
test=document_fix
7 years ago
lijianshe02
211f5b0319
enhance mul_op input error message test=develop ( #20414 )
...
* enhance mul_op input error message test=develop
7 years ago
hong
a1f54a8935
get shape from var desc to avoid run startup program; test=develop ( #20499 )
7 years ago
wawltor
eb526e3f08
fix sign op input error check on float16 ( #20472 )
...
fix sign op input error check
test=develop
7 years ago
Guo Sheng
101e20e92e
Update some en api docs ( #20496 )
...
* Fix api docs. test=document-fix
* Fix en docs. test=develop
* Fix the doc of dynamic_gru. test=document_fix
* Update API.spec. test=document_fix
* Fix codestyle test=develop, test=document_fix
7 years ago
zhupengyang
200cc5e2ad
fix APIs: cast, concat, tensor_array_to_tensor, argmin, argmax, argsort ( #20363 )
...
* fix APIs: cast, concat, tensor_array_to_tensor, argmin, argmax, argsort
test=develop
test=document_fix
7 years ago
GaoWei8
5ea2cc6733
fix API:cos, exp, ceil, elu, brelu English doc ( #20032 )
...
* fix API:cos, exp, ceil, elu, brelu English doc
test=develop
test=document_fix
7 years ago
ruri
e705fede11
refine 13 en docs ( #20312 )
...
* refine 13 en doc
7 years ago
lijianshe02
f0dabe680d
fix read_file, is_empty, Print API EN doc ( #20492 )
...
* fix Print, is_empty, read_file test=document_fix
7 years ago
wopeizl
3044a62f2a
fix the precise roi poop op test=develop ( #20126 )
...
* fix the precise roi poop op test=develop
add roi backward implementation, fix the output-channel
7 years ago
Yiqun Liu
1e59cf97eb
Polish the English documentation DynamicRNN ( #20453 )
...
* Refine the main comment of DynamicRNN.
* Refine the documentation of DynamicRNN's step_input function.
* Refine the documentation of DynamicRNN's static_input function.
* Refine the documentation of DynamicRNN's block function.
* Refine the documentation of DynamicRNN's memory function.
* Refine the documentation of DynamicRNN's update_memory and output function.
* Refine the code format and remove the method list.
* Refine the documentation of DynamicRNN's __call__ function.
test=develop
test=document_fix
* Minor modification.
test=develop
test=document_fix
* Fix some typo.
* Update API.spec.
test=develop
test=document_fix
* Refine the English according to the comments.
* Update API.spec.
test=develop
test=document_fix
* Fix some typo.
* Update API.spec.
7 years ago
Aurelius84
2213ae6bf9
Fix fp16 in input.dtype check in layers.fc ( #20467 )
...
* Add fp16 in input.dtype check test=develop
* Add warning of fp16 in CPU test=develop
* add unittest code for fp16 test=develop
* fix float16 list error test=develop
7 years ago
qingqing01
df3025c3ee
Polish En doc for some APIs. ( #20418 )
...
* Polish En doc for some APIs
* Update some comments and API.spec
7 years ago
wopeizl
6b612a2807
optimize the english description for APIs test=develop test=document_fix ( #20286 )
...
* optimize the english description for APIs test=develop test=document_fix
7 years ago
pkpk
ac0acc7a92
Fix the English document for 1.6 ( #20338 )
...
* test=document_fix
* Update metrics.py
* test=document_fix
* test=document_fix
* test=document_fix
* test=document_fix
7 years ago
FDInSky
0ac08489a9
udpate en doc test=develop, test=document_fix ( #20459 )
7 years ago
GaoWei8
54647a5490
fix GradientClipByNorm english doc ( #20224 )
...
* fix GradientClipByNorm english doc
test=develop
test=document_fix
7 years ago
Wilber
2893cd1ae0
modify english api ( #20159 )
...
* modify english api test=develop test=document_fix
- leaky_relu
- less_than
- log
- logical_and
- logical_or
- logical_xor
- logical_not
7 years ago
Liufang Sang
86c2c362ae
fix fuse_reduce_op quantization bug ( #20306 )
...
* fix fuse_reduce_op quantization bug test=develop
* close fuse_all_reduce_ops in PaddleSlim, test=develop
7 years ago
zhouwei25
b1218d056b
fix English Doc of API:layers.py_func/sum ( #20329 )
...
* fix English Doc of API:layers.py_func/sum
7 years ago
qingqing01
63194d6e67
Enhance InferShape in deformable_conv and prior_box op ( #20372 )
7 years ago
zhongpu
0b321c8a2f
fix APIs, to_variable、NCE、PRelu、softmax、rankloss for dygraph, test=document_fix, test=develop ( #20142 )
7 years ago
wangchaochaohu
508127b180
fix some en doc ( #20281 )
...
* fix some en doc test=develop test=document_fix
* fix new fluid.data API.spec test=develop test=document_fix
* fix typo test=develop, test=document_fix
* fix typo test=develop test=document_fix
* fix typo test=develop test=document_fix
* fix test=develop test=document_fix
* fix according review test=develop test=document_fix
* fix review test=develop test=document_fix
* fix according review advice test=develop test=document_fix
* fix the doc test=develop test=document_fix
* fix API.spec test=develop test=document_fix
7 years ago
zhouwei25
f18231412f
fix English Doc of API:layers.array_read/array_write/array_length ( #20345 )
...
* fix English Doc of API:layers.py_func/sum, test=document_fix
* fix English Doc of API:layers.array_read/array_write/array_length,test=develop test=document_fix
7 years ago
Yuan Shuai
9f4a32fb8f
Fix ErrorClipByValue, GradientClipByGlobalNorm, GradientClipByValue ( #20279 )
...
* Fix ErrorClipByValue, GradientClipByGlobalNorm, GradientClipByValue
* add API.spec
7 years ago
Guanghua Yu
bc4c7a9eb6
Fix english doc api: sequence_slice, sigmoid_cross_entropy_with_logits, ssd_loss, DetectionMAP, detection_map ( #20405 )
...
* Fix english doc api: sequence_slice, sigmoid_cross_entropy_with_logits, ssd_loss, DetectionMAP, detection_map
7 years ago
silingtong123
9ee288ac87
test=develop, fix the parameter seed failed to work ( #20412 )
7 years ago
juncaipeng
5ed23c6082
Modify doc for shuffle, firstn, save_vars, load_vars, L1DecayRegularizer, L2DecayRegularizer ( #20287 )
...
* modify shuffle, firstn, regularizer, load_vars, save_vars, test=develop, test=document_fix
7 years ago
zhongpu
52dcc1679d
fix Embedding API for dygraph ( #20358 )
...
* fix Embedding API for dygraph, test=develop, test=document_fix
* fix dtype, test=develop, test=document_fix
7 years ago
tangwei12
a010d883b4
doc fix, test=develop, test=document_fix ( #20239 )
...
* doc fix, test=develop, test=document_fix
7 years ago
Zhaolong Xing
63d88b522f
refine sqrt api check ( #20254 )
...
test=develop
7 years ago
huzhiqiang
a69baf639f
modify compose en ( #20217 )
...
* modify compose en
* test=develop
* test=develop
* test=develop
* test=develop
* test=develop
* test=develop
* test=develop
* test=develop
* test=develop
* test=develop,test=document_fix
* test=develop,test=document_fix
7 years ago
huzhiqiang
6a8e54047f
fix reorder_lod_tensor_by_rank doc en ( #20256 )
...
fix reorder_lod_tensor_by_rank doc en
7 years ago
zhang wenhui
b82e6520e1
fix pslib datanorm double bug ( #20297 )
...
* fix fc sort . test=develop
7 years ago
Leo Chen
7f68b0b5b0
Polish en APIs of unique_name, test=develop, test=document_fix ( #20113 )
...
* polish en APIs of unique_name, test=develop, test=document_fix
* follow comments, test=develop, test=document_dix
* update api.spec, test=develop, test=document_fix
7 years ago
Yibing Liu
899ab30df0
Fix several api docs ( #20282 )
...
* Fix several api docs
test=develop, test=document_fix
7 years ago
Pei Yang
6f9e64d443
refine en api doc of [shape, scale, split, selu, soft_relu, scatter], test=develop, test=document_fix ( #20264 )
7 years ago
wangchaochaohu
5c649d9a1e
fix the reduce api en doc ( #20223 )
...
* fix the reduce api en doc test=document_fix test=develop
* fix the fluid.data test=develop test=document_fix
* fix the API.spec test=develop test=document_fix
* fix according the review test=develop test=document_fix
* fix the confilict test=develop test=document_fix
7 years ago