cc
3f816bc8b4
[Quantization] Conv2d_transpose and mul support channnelwise quantization ( #25639 )
...
* Conv2d_transpose and mul support channnelwise quantization, test=develop
* Skip collecting out threshold for output tensor of which the type is not fp32 or fp64, test=develop
* Fix error in test_user_defined_quantization, test=develop
* Add depthwise_conv_bn_fuse, test=develop
* Add conv_transpose_bn_fuse_pass for post_training_quant, test=develop
5 years ago
wangchaochaohu
2101dfd2b3
【API2.0】add Chunk API ( #26314 )
5 years ago
Sylwester Fraczek
abfdffa039
add use_mkldnn attribute to ops in dygraph ( #25773 )
5 years ago
lilong12
638bbb6153
Improve expand as ( #26290 )
...
align expand_as op to expand.
5 years ago
Kaipeng Deng
5fdec3ed35
fix test_metrics accuracy. test=develop ( #26358 )
5 years ago
ShenLiang
fd0051b488
add set default dtype, get default dtype ( #26006 )
...
* add set/get default dtype
5 years ago
zhupengyang
586a6dd358
log_softmax and LogSoftmax: impl kernel and refind docs ( #26088 )
5 years ago
yaoxuefeng
23261ff44b
add cpu random Generator ( #26013 )
5 years ago
Sylwester Fraczek
69742bd9a4
Enable mkldnn layout conversion ( #25778 )
...
* enable mkldnn layout conversion
* review fix: remove tmp_place
* fix test mkldnn swish
* add UT for PrepareData CPU->MKLDNN
* add #ifdef PADDLE_WITH_MKLDNN
* Force-push commit
Co-authored-by: grygielski <adam.grygielski@gmail.com>
5 years ago
LutaoChu
71b19c7f4e
add nn.functional.normalize API for API2.0, fix L1Loss API typo
...
add nn.functional.normalize API for API2.0, fix L1Loss API typo, test=develop
5 years ago
zhupengyang
9317e51fa6
Fix
5 years ago
mapingshuo
cd48bdad31
add feature to fleet2.0 role_maker, distribute_strategy, test=develop ( #26267 )
...
* add feature to fleet2.0 role_maker, distribute_strategy, test=develop
5 years ago
Dong Daxiang
4ec51e0205
【paddle.fleet】Clear disable ( #26334 )
...
* add check approval
test=develop
5 years ago
Yi Liu
3b2c580a66
【paddle.fleet】make fleet_localsgd_meta_optimizer work ( #26213 )
...
* make fleet_localsgd_meta_optimizer work
* fix bug in localsgd meta optimizer
5 years ago
Qinghe JING
d549a9b1fe
【paddle.fleet】Set default value to strategy in distributed_optimizer ( #26246 )
...
* set default value to strategy in distributed_optimizer test=develop
5 years ago
Zhou Wei
5017aa76e6
set default python3,fix incompatible,cache dir for third party,unify error code,for windows ( #26178 )
...
* set default python3 for paddle windows,test=win
* set default python3,cache dir for third party,error code,test=win
* fix some incompatible
* fix some error
* set virtual environment,test=win
5 years ago
Jack Zhou
6d22f5c73e
Add PADDLE_ENFORCE in nll loss cuda kernel ( #26294 )
...
* add nll loss API, update demo code of the comment
5 years ago
wawltor
d03dd9d5f1
fix the margin ranking loss doc and api, test=develop ( #26266 )
...
* upate the target to label, test=develop
* Update the code for the margin_ranking_loss, test=develop
5 years ago
wawltor
00e08ce07b
add the sigmoid, Sigmoid for the api 2.0 ( #26171 )
...
Update the sigmoid, Sigmoid layer for the api2.0
5 years ago
Yang Zhang
d063a98b40
Update `paddle.add` ( #25910 )
...
* Update `paddle.add`
remove `alpha`
update doc sample code
remove `:alias` etc
* Remove `imperative` reference from docstring
5 years ago
Kaipeng Deng
7051bbc2a1
fix test_multiprocess_dataloader unittest. test=develop ( #26241 )
...
* fix test_multiprocess_dataloader unittest. test=develop
5 years ago
LielinJiang
9a6a4fbc04
Add children and named_children for Layer ( #26289 )
...
* add children and named_children
5 years ago
wangchaochaohu
0b81d76310
[API2.0] add op for cudnn version query test=develop ( #26180 )
5 years ago
Kaipeng Deng
e87436a570
DistributedBatchSampler add num_replicas and rank. test=develop ( #26315 )
5 years ago
lilong12
241b44db14
[API 2.0] adaptive expand op to use shape instead of expand_times ( #26206 )
...
* adaptive expand op to 2.0 (align to torch.expand) , test=develop
5 years ago
Dong Daxiang
cbf8ba1591
add check approval ( #26284 )
...
test=develop
5 years ago
wangchaochaohu
bb11cbc250
[API2.0] add Device api (set_device and get_device)( #26103 )
5 years ago
YUNSHEN XIE
30e1083e82
disable test_sampling_id_op ( #26313 )
5 years ago
wangchaochaohu
b48ab36b76
fix the typo test=develop ( #26310 )
5 years ago
Zhou Wei
6de463d3d1
expose and unify the Tensor concepts to the user ( #25978 )
...
* expose and unify the Tensor concepts to the user
* expose tensor to user
* add copy place for Tensor
* add copy place for Tensor
* add note
* add macro PADDLE_WITH_CUDA
* remove RUN_TYPE=DIST
* fix some error
5 years ago
lilong12
fbd4d3cc97
[API 2.0] add paddle.tile op ( #26245 )
...
* add tile_op, test=develop
5 years ago
LielinJiang
e4033a06d5
add Class KLDivLoss and function kl_div ( #25977 )
...
* add Class KLDivLoss and function kl_div
5 years ago
liu zhengxi
daad625121
fix rnncell errmsg ( #26298 )
5 years ago
Leo Chen
79f12595d8
Refine deprecated decorator ( #26238 )
...
* show deprecation warning once
* add some notes
* remove unused module
5 years ago
123malin
f2b6d8d553
test=develop, bug fix for test_dist_fleet_ctr ( #26287 )
...
* test=develop, bug fix for test_dist_fleet_ctr
5 years ago
Bai Yifan
22b06db3d7
add paddle.nn.functional.mse_loss ( #26089 )
...
* add paddle.nn.functional.mse_loss
* add name
* fix conflict
5 years ago
MRXLT
b2d41e2acd
fix unstack op doc ( #26043 )
5 years ago
Yang Zhang
617eb67f29
Upgrade `no_grad` decorator ( #25472 )
...
* Upgrade `no_grad` decorator
test=develop
- match torch decorator usage (i.e., with parenthesis)
- handle generator functions
- add `paddle.no_grad` alias
* Switch from `functools` to `decorator`
preserves signature
* Reword decorator usage note
5 years ago
zhupengyang
7a89a0a7be
hardshrink and Hardshrink: add class, threshold default 0.5 ( #26198 )
5 years ago
liuyuhui
935da32d25
【paddle.fleet】upgrade fleet: modify role_maker ( #26038 )
...
* add unittest for paddlerolemaker with gloo
5 years ago
wangchaochaohu
ba574c8ec3
refine the usage of numpy element fetch for Ops test=develop ( #26194 )
5 years ago
Yibing Liu
b9828bdf3a
Use faster algorithm for complex matmul, test=develop ( #26231 )
5 years ago
ShenLiang
5113aae6ea
fix the doc of inverse, dot, cholesky ( #25860 )
...
* fix the doc of inverse, dot, cholesky
5 years ago
pangyoki
cfa086bdc1
Remove original name for alias APIs ( #26195 )
...
* fixed static module
* solve conflict
* remove original name for alias API
5 years ago
wawltor
2d6cc0b125
support the tuple for attribute of axis in min, max for api2.0
...
Update the code for the min,max, test=develop
5 years ago
wawltor
682035663a
Add the loss of MarginRankingLoss for the paddle api2.0 ( #26078 )
...
add the api and doc for the margin_ranking_loss and MarginRankingLoss
5 years ago
Dong Daxiang
50a5bcfc9d
【paddle.fleet】paddle.fleet -> paddle.distributed.fleet. ( #26186 )
...
* move paddle.fleet to paddle.distributed.fleet
5 years ago
Leo Chen
2d95280e1f
Feature/Enable Auto-Mixed-Precision in dynamic graph ( #24903 )
...
* add auto_cast, test=develop
* add loss scaler, test=develop
* add comments, test=develop
* refine code, test=develop
* refine code, test=develop
* do not set flags automatically, test=develop
* fix custom op bug, test=develop
* add more test, test=develop
* refine enable logic, test=develop
* enable amp test with GPU, test=develop
* add unittest
* add test for found_inf
* follow comments
* follow comments
* remove global variable, use singleton
* add some notes
* update comments
* update comments
* update comments
* add use_dynamic_loss_scaling argument
* refine found_inf
* refine found_inf
5 years ago
Chen Weihang
838e36e9ed
Fix loaded variable suffix repeat error ( #26169 )
...
* fix loaded var suffix repeat error
* use new dygraph name for loaded param
5 years ago
Zhen Wang
e656ca4783
add assert raises in the test_retain_graph UT. ( #25983 )
5 years ago
Zhong Hui
7165f48409
change api name eps to epsilon for the pair_distance
...
change api name eps to epsilon for the pair_distance
5 years ago
Jack Zhou
dea41da715
add nll loss API for the paddlepaddle api2.0
...
* add nll loss API, update demo code of the comment
5 years ago
liym27
1d730ffbf5
[Dy2Stat] Removes temporary files created during the transformation of dygraph to static graph. ( #26150 )
5 years ago
Zhong Hui
361363c321
add pairewise distance for the paddlepaddle api 2.0
...
add pairewise distance for the paddlepaddle api 2.0
5 years ago
LutaoChu
1d870c442e
fix paddle.nn.loss.L1Loss OP, add paddle.nn.functional.l1_loss OP for API2.0
...
fix paddle.nn.loss.L1Loss OP, add paddle.nn.functional.l1_loss OP for API2.0
5 years ago
zhupengyang
faf83a7af2
paddle.mean: add attr axis, keepdim ( #26147 )
5 years ago
wawltor
9c17b3c9f8
Add the max, min, maximum, minimum api for the API 2.0
...
* Add the max, min, maximum, minimum api for the API 2.0, test=develop
5 years ago
pangyoki
13b80d9bea
fixed imperative module in doc example code ( #26149 )
...
* fixed imperative module in doc example code
* fixed static module
* solve conflict
5 years ago
Kaipeng Deng
dbc88bb900
Add iterable dataset support for multiprocess DataLoader ( #25558 )
...
* add IterableDataset support in multiprocess DataLoader. test=develop
5 years ago
JZ-LIANG
54003b873e
【paddle.fleet】add lamb to fleet meta optimizer ( #26025 )
...
add lamb to fleet meta optimizer
5 years ago
Yiqun Liu
1be6bf45ae
Add assign to fusion_group and enhance inplace execution in fusion_group. ( #26121 )
5 years ago
zhupengyang
b2034c2854
softmax: imperative->static; fix doc examples ( #26134 )
5 years ago
LutaoChu
b6d14d9d07
add deprecated decorator, remove alias for cumsum op ( #26104 )
...
add deprecated decorator, remove alias for cumsum op
5 years ago
Zhen Wang
a86e8c0eef
add more error info for these ops without double grad ops. ( #25987 )
5 years ago
danleifeng
34eb27a1d6
ps worker-ports are optional for users for fleetrun command; test=develop ( #26090 )
5 years ago
Jacek Czaja
615e8a20f6
- oneDNN update 1.3 -> 1.5 ( #25202 )
...
* - introducing oneDNN 1.6
test=develop
* - onednn 1.5
test=develop
* - oneDNN 1.5
test=develop
* - oneDNN 1.5 bugfix
test=develop
5 years ago
pangyoki
2efcb481c8
Paddle-2.0 API directory migration ( #25898 )
...
* Directory migration, test=develop
* Change imperative from paddle init to paddle framework, test=develop
* Fixed jit bug, test=develop
* default static mode, test=develop
* fixed format and create parameter belongs to framework, test=develop
* Fixed import package, test=develop
* fix __init__ format, test=develop
* fixed alias problem
* fixed paddle.enable_imperative problems, test=develop
* Add unittest
* delete install_check comment
* Fixed unittest timeout
* fixed unittest error
* move Program default_xx_program to static package
* optimize unittest method
* fixed framework __init__ format
* fixed jit path
* delete alias
* move jit to paddle
* Fixed unittest format
* fixed paddle.default_main_program
* Fixed save load API in paddle __init__.py
* fixed ci paddle.imperative.to_variable
5 years ago
zhupengyang
cd7b55a221
LeakyRelu: refine doc, fix name bug ( #25957 )
5 years ago
zhupengyang
2214394edc
softmax: refine doc; input->x ( #25976 )
5 years ago
ShenLiang
3076205ba9
rm eye, test=develop ( #26031 )
5 years ago
lilong12
8caee2ad51
【paddle.fleet】add the support for multi-node training for pipeline ( #25907 )
...
* add the support for multi-node training
5 years ago
LutaoChu
bf2db646de
fix cumsum op for API 2.0, optimize performance
...
update cumsum api and fix up the cumsum op
5 years ago
Leo Chen
9c6112104e
Fix prelu for compatibility with saved model of old version ( #26052 )
...
* fix prelu for compatibility with saved model of old version
* reshape alpha
5 years ago
Adam
1893cd6bb8
Add oneDNN relu6 op ( #26037 )
...
* Add oneDNN relu6 op
* Lint fixes
5 years ago
gongweibao
a7c5210051
Fix test_hdfs bug. ( #26068 )
...
* fix merge3 test=develop
5 years ago
tangwei12
c14ec8782b
【paddle.fleet】Feature/fleet ps api 2.0 ( #25857 )
...
* add paddle.fleet.AsyncOptimizer
Co-authored-by: dongdaxiang <dongdaxiang@baidu.com>
5 years ago
Chen Weihang
3c8daa9b89
Add pin memory control for BufferedReader ( #26026 )
...
* add pin memory control
* fix buffered reader init problem
* fix unittest error
* add unittest for coverage
5 years ago
Chen Weihang
ad4a0466a5
Add cuda pinned place branch in slice op GetExpectedKernelType ( #26027 )
...
* add cuda pinned place branch
* add unittest
* add skip when not gpu
5 years ago
danleifeng
d5a66fd7a0
【paddle.fleet】support multi-node cpu training for fleetrun ( #26011 )
...
* support multi-ps training mode for fleetrun; test=develop
5 years ago
gongweibao
0067a2e4ec
Save checkpoint automatically ( #25917 )
5 years ago
Feiyu Chan
e853ece0a2
update document template for unary elementwise layers ( #25896 )
...
1. update document template for unary elementwise layers(a.k.a. activation layer);
2. remove generate_op_noattr and use generate_activation instead; remove redundant function copies;
3. minor update for docstring to fix rst format errors.
4. fix doc for Rsqrt OP
5. add sample code for each activation separately;
6. remove the unused deprecated decorator.
5 years ago
joanna.wozna.intel
734cf1c3e9
Change use_quantizer attribute name and data type ( #25838 )
...
* Change use_quantizer attribute name and data type
* Fix problem with setting attribute
* Add changes due to review
* Small change in function
* Restore use_quantizer attr for compatibility
5 years ago
Sylwester Fraczek
4c9ddb3db4
enable check_dygraph for mkldnn activation tests ( #25779 )
...
* enable check_dygraph for mkldnn activation tests
* TestMKLDNNSwishDim4 float32->self.dtype
5 years ago
Leo Chen
5258d53d65
refine unsqueeze, test=develop ( #25470 )
...
* refine unsqueeze, test=develop
* update unsqueeze, test=develop
* refine unsqueeze, test=develop
* refine unsqueeze, test=develop
* update
* remove None, test=develop
* follow comments
* support bool
* update doc
* follow comments
* merge develop
5 years ago
wangchaochaohu
0dc485e6fe
refine the value parameter's Tensor support of fill_constant Op test=… ( #25986 )
5 years ago
liym27
168ea22351
[Dy2Stat-ErrorMessage]Optimize error value to improve readability when error raised in runtime. ( #25970 )
...
* don't remove op_callstack
* [Dy2Stat-ErrorMessage] Optimize error value to improve readability if error raised in run-time.
1. update op_callstack with original information;
2. simplify error value to improve readability if error raised in run-time.
* Fix error in Python3.
5 years ago
tangwei12
3755564ae1
Fix/large scale fix ( #25999 )
...
* fix large scale KV
* fix single training using async ssa graph
5 years ago
Leo Chen
751305ecf0
Add flags to control call stack of error message ( #25997 )
...
* add flags_call_stack_level
* update
* refine code
5 years ago
Chen Weihang
3eee0467fe
Add limit support for load_dygraph loading jit.save result ( #25935 )
...
* add limit support for load_dygraph loading jit.save result
* simplify unittest
* add unittests for coverage
* remove encoding limit of loading extra var info
5 years ago
liym27
12bf9d7168
[Dy2Stat-ErrorMessage]Enhance original error and create new exception ( #25798 )
...
* [Dy2Stat-ErrorMessage]Enhance original error and create new exception. test=develop
* Delete redundant code and change func name to create_and_update_origin_info_map.
* optimize loop_transformer.
* fix bug in print_transformer.
* Modify code according to the comments.
5 years ago
yaoxuefeng
07f509a835
fix 4 apis test=develop ( #25529 )
5 years ago
123malin
2191a08317
【paddle.fleet】fleet_util move to paddle.fleet ( #25805 )
...
* test=develop,test=document_fix, remove the out args
* fleet_util move to paddle.fleet
Co-authored-by: WuHaobo <wuhaobo1994@gmail.com>
Co-authored-by: tangwei12 <tangwei12@baidu.com>
5 years ago
danleifeng
0d4ce6ac5d
fix test_launch and test_fleet_launch bug; test=develop ( #26015 )
5 years ago
Leo Chen
6e7f0bb284
refine paddle.stack ( #25305 )
...
* refine stack in dygraph mode, test=develop
* update stack, test=develop
* rename Variable to Tensor, test=develop
* add name args to fluid.layers.stack, test=develop
* follow comments
* update doc
* update doc
* follow comments
5 years ago
yaoxuefeng
224620071b
add new flatten op test=develop ( #25393 )
5 years ago
xujiaqi01
20c8432ae3
move dataset from paddfle.fluid to paddle.fleet ( #25887 )
...
* move dataset to fleet
test=develop
* fix
test=develop
* fix
test=develop
* fix
test=develop
* test=develop
* test=develop
* test=develop
* test=develop
* test=develop
* test=develop
* test=develop
5 years ago
Adam
68c6160e63
Add oneDNN fusion_gru kernel ( #25594 )
...
* Add oneDNN fusion_gru kernel and fix fc+gru pass
test=develop
* Formatting changes
test=develop
* Lint fixes
test=develop
* Add memory::format_tag::any to GRU weights
test=develop
* Fix build with CUDA
* Fix build with CUDA v2
5 years ago
Thunderbrook
0cb60c700d
add heter ps mode ( #25682 )
...
* add heter ps mode
* code style
test=develop
* add with_pslib
test=develop
* unitest
test=develop
* code style
test=develop
* code style
test=develop
* code style
test=develop
* code style
test=develop
* code style
test=develop
* code style
test=develop
* code style
test=develop
* code style
test=develop
* test monitor
test=develop
* prepare trainer
test=develop
* code style
test=develop
5 years ago
Shibo Tao
c8d0d1419b
add paddle.utils.deprecated. ( #25912 )
...
* add paddle.utils.deprecated.
* add docstring. test=develop
* add alias paddle.utils.deprecated. test=develop
* rm deprecated in python/paddle/fluid/annotations.py. test=develop
* 1. check version before warning. 2. bug fix. test=develop
* bug fix. test=develop
* use paddle.fluid.require_version. test=develop
* fix doc
* fix doc. test=develop
* fix doc. test=develop
* bug fix. test=develop
* use packaging.version. test=develop.
* enhance doc. test=develop
* add compare_version function. test=develop
* add version.py. test=develop
* remove packaging. test=develop
* move compare_version to deprecated.py. test=develop
* remove print. test=develop
* fix. test=develop
* fix. test=develop
* fix. test=develop
* fix. test=develop
* inline. test=develop
* fix. test=develop
5 years ago
LielinJiang
ffcb6537c5
Add uncombined_weight_to_state_dict api ( #25649 )
...
* add uncombined_weight_to_state_dict API
5 years ago
wawltor
a43b0d155d
Update the code for the sort api
...
update the sort api, delete unused ouput index tensor
5 years ago
WangXi
2c9d0f3cb9
【paddle.fleet】Add dgc to fleet meta optimizer ( #25738 )
...
Add dgc to fleet meta optimizer, rm dgc from optimizer all
5 years ago
Dong Daxiang
4adac0e309
【paddle.fleet】Add fleet base context ( #25954 )
...
* generate context during compile
5 years ago
Chen Weihang
36027490d8
Verify correctness of jit.save/jit.load - part 1 ( #25915 )
5 years ago
Zhen Wang
82374dc12f
Add some error messages for the op without double grads. ( #25951 )
...
* Add some error messages for the op without double grads.
* fix the test_imperative_double_grad UT.
5 years ago
LielinJiang
948bc8b7bb
Add apply for Layer ( #25812 )
...
* add apply for Layer
5 years ago
danleifeng
3dd2e3801a
【paddle.fleet】add fleetrun command for distributed running ( #25806 )
...
* add fleetrun command for distributed running; test=develop
5 years ago
wawltor
a697e94693
Update the code of the compare ops for the broadcast function
...
Update the code for the compare ops for the broadcast function
5 years ago
Aurelius84
8ec4af278d
【Dy2stat】Fix is_test switch incorrectly in PartialProgram ( #25809 )
...
* fix eval() sync problem
* add unittest
* modify according reviewer
* fix unittest failed
5 years ago
wangchaochaohu
ff717d5158
Add support for tuple of concat Op test=develop ( #25800 )
5 years ago
Huihuang Zheng
e5514935cb
Modify Executor Example Code to Use fluid.data, test=document_fix ( #25893 )
...
As the title
5 years ago
Dong Daxiang
78afbb1216
fix typo in fleet base ( #25919 )
5 years ago
WuHaobo
f0b8871741
Delete inverse out ( #25925 )
...
* test=develop,test=document_fix, remove the out args
* delete out in inverse
5 years ago
WuHaobo
12bed4a931
remove all op with out args ( #25570 )
...
* test=develop,test=document_fix, remove the out args
* Revert "test=develop,test=document_fix, remove the out args"
This reverts commit f430799bc82ee327d14a04c3bb1ea712d39d1cef.
* test=develop,test=document_fix, remove the out args
* remove all the out args
* remove all the out args
* test=develop, remove all the out args
* test=develop, remove all the out args
* test=develop, remove out args in matmul testcase
* test=develop, fix the bugs of out args testcase in logsumexp
* test=develop, fix the bugs of out args testcase in elementwise_add
* test=develop, fix the bugs of out args testcase in elementwise_div
* test=develop, fix the bugs of out args testcase in activation
* test=develop, fix the bugs of out args testcase in addcmul
* test=develop, fix the bugs of out args
* test=develop, fix the bugs of out args in API example
* test=develop, fix the bugs of out args in kron testcase
* test=develop, fix the bugs of out args in kron testcase
* test=develop, remove out args
* test=develop, remove out args
* test=develop, fix the coverage
* test=develop, polish codestyle
* test=develop, Update math.py
* test=develop, polish codestyle
* test=develop, polish codestyle
* test=develop, polish codestyle
* test=develop, polish codestyle
* test=develop, polish the test_activation_op.py
* test=develop, Update math.py
* test=develop, fix the failed CI
* test=develop, add core.ops
* test=develop, add core.ops change clamp to clip
* test=develop, add core.ops change clamp to clip
* test=develop, write testcase for clamp OP
5 years ago
WangXi
a6c87fd091
Add amp to fleet meta optimizer, test=develop ( #25770 )
5 years ago
Pei Yang
9e9a569dae
add trt int8 support for elementwise_mul and scale ( #25676 )
5 years ago
xujiaqi01
d11c140e28
fix dump, fix cvm check ( #25400 )
...
* fix dump, fix cvm check
test=develop
* fix
test=develop
* fix
test=develop
* fix
test=develop
5 years ago
JZ-LIANG
8ebffc78c9
add lars to fleet meta optimizer ( #25884 )
5 years ago
Dong Daxiang
8d2896f1fe
【paddle.fleet】Fleet run graph in Executor and add two more strategies ( #25844 )
...
* split meta optimizer files
* add graph execution in execution, update two properties in DistributedStrategy, unit tests for these features
5 years ago
gentelyang
6773fcc1ba
fix stratege.set_program_config ( #25864 )
5 years ago
Yi Liu
427c5529ea
add localsgd meta optimizer ( #25758 )
...
* add localsgd meta optimizer
5 years ago
Zhang Ting
2d24f56a7a
avoid data transfer, test=develop ( #25810 )
5 years ago
lilong12
f40a50d124
add pipeline optimizer for fleet ( #25768 )
...
* add pipeline optimizer
5 years ago
yukavio
f6ac5990aa
fix quant unit test ( #25792 )
5 years ago
Bai Yifan
2131559d08
Remove slim from paddle framework ( #25666 )
...
* Remove slim from paddle framework
test=develop
Co-authored-by: wanghaoshuang <wanghaoshuang@baidu.com>
5 years ago
ShenLiang
bca303165a
fix inverse bug ( #25641 )
...
* fix inverse bug, test=develop
* fix the untest, test=develop
* add singular checking, test=develop
* fix the utest, test=develop
* use memory::copy, test=develop
* fix bost_get, test=develop
* fix position, test=develop
5 years ago
lilong12
a07b62623e
hidden the dataset call of pipeline to train_from_dataset ( #25834 )
...
* hidden the explicit setting of dataset for pipeline training.
5 years ago
lilong12
f132c2f40e
Modify pipeline demo to use the new pipelineoptimizer api. ( #25374 )
...
* modify pipeline demo, test=develop
5 years ago
wawltor
595a719795
Update the api for the compare_ops
...
Update the code for the compare_ops, update the api and doc
5 years ago
wangchaochaohu
fc6fed3283
(Variable --->Tensor) refine the OP doc for API2.0 ( #25737 )
5 years ago
wangchaochaohu
32b9577b2a
refine the split op for API 2.0 test=develop ( #25320 )
5 years ago
lilong12
8a68d2c213
Revert "add device attr for regularizer, test=develop ( #24981 )" ( #25375 )
...
This reverts commit ab5a1fb853
.
5 years ago
lilong12
5f30e57cdd
fix test_pipeline, test=develop ( #25808 )
...
* fix test_pipeline, test=develop
5 years ago
Chen Weihang
d47304e6d9
Refine paddle error stack format ( #25790 )
...
* refine error stack format
* polish compile traceback format
* polish detail format
5 years ago
mapingshuo
c70f592002
add gradient Merge optimizer to meta ( #25763 )
...
* add gradient Merge optimizer to meta, test=develop
5 years ago
tangwei12
caa90a6510
Integrated Trainer of Parameter Server (API add `fluid.contrib.layers.sparse_embedding` only) ( #22957 )
...
* Integrated Trainer of Parameter Server
5 years ago
qingqing01
af74675b5a
Remove paddle.incubate.hapi.loss and reuse paddle.nn.layer.loss in high level API ( #25590 )
...
* Remove paddle.incubate.hapi.loss and reuse the paddle.nn.layer.loss in high level API
5 years ago
liym27
2a191d8fa5
fix error in convert_dtype: ValueError->TypeError and polish message ( #25788 )
5 years ago
liym27
452be8950a
[Dy2Stat-ErrorMessage] Add interface:create_origin_info_map and attach_origin_info for AST node ( #25627 )
...
* Add interface:create_origin_info_map and attach_origin_info for AST node. test=develop
* Fix code according to comments from reviewers. test=develop
5 years ago
hong
c2a21ca9c9
Fix dygraph grad bugs ( #25781 )
...
* fix double grad visitid unit; test=develop
* change name hash_pair to HashPair; test=develop
* follow comment; test=develop
5 years ago
hong
5023482ad9
Fix imperative orc attention unitest ( #25797 )
...
* reduce hidden size and loop number; test=develop
* change loop number; remove useless code; test=develop
5 years ago
wawltor
dc42e3c4bc
Fix the argsort and sort api for the paddle api2.0 ( #25514 )
...
Fix the argsort and sort op for the api2.0, and update the api
5 years ago
cc
42189be67b
[Quant] Remove the output for moving_average_abs_max_scale op ( #25697 )
...
* Remove the output for moving_average_abs_max_scale op, test=develop
5 years ago
Dong Daxiang
a96d54ac19
Generate final strategy ( #25782 )
...
* refine strategy compiler and meta optimizers
make async as a_sync
5 years ago
zhupengyang
0ca1bb56df
refine docs of rand, randn, randint, randperm, zeros_like, arange ( #25633 )
5 years ago
Chen Weihang
23d1228c4d
remove ProgramTranslator.save_inference_model ( #25740 )
...
* remove ProgramTranslator.save_inference_model
* adapt save_quantized_model
* revert buffer check implemention
* remove useless import function
5 years ago
Chen Weihang
1b3081b1b4
Simplify BufferedReader to improve DataLoader performance ( #25648 )
...
* simplify buffered reader to improve DataLoader performance
* fix 22 failed unittests
* fix cuda pinned context condition
* fix test_reader_reset failed
* fix two failed unittests
* change unittest place
* polish error messaage
* polish cast op GetExpecctedKernelType
* remove debug info in unittest
5 years ago
Huihuang Zheng
b3f58d3086
TracedLayer Error Message Enhancement ( #25734 )
...
Enhance TracedLayer Error Message
Note: this PR uses assert to check type somewhere and check_type somewhere, the reason is that the check_type skips checking when it is under dygraph mode.
5 years ago
yukavio
c9285a18a0
saving inference model when user define activation or weight preprocess function ( #25749 )
...
* saving inference model for user defined quantization model
* saving inference model for user defined quantization model
* fixed ci coverage
5 years ago
mapingshuo
3e2a348886
add string variable support for RecomputeOptimizer ( #25728 )
5 years ago
Dong Daxiang
920d998f1e
add more settings for distributed strategy ( #25685 )
...
* add more settings for distributed strategy
Basically, DistributedStrategy has several parts of configurations:
- BuildStrategy: the same as paddle.fluid.BuildStrategy, but the distributed arguments are moved out of BuildStrategy
- ExecutionStrategy: the same as paddle.fluid.ExecutionStrategy
- collective communication configs: nccl_comm_num, hierarchical allreduce and so on
- distributed algorithms: async_update(mainly used in PS), lars, lamb and so on
5 years ago
Sylwester Fraczek
1aaa26f102
add dnnl sigmoid (logistic) activation ( #25745 )
5 years ago
cc
650d7223bc
Fix test_quantization_scale_pass by change the model, test=develop ( #25710 )
5 years ago
zhupengyang
d2f7ac61ee
ones_like API: remove device, input -> x ( #25663 )
5 years ago
wangchaochaohu
1e4ab728fb
refine the concat Op for API 2.0 test=develop ( #25307 )
5 years ago
Wojciech Uss
43f3d0cce3
Add an option to choose inference targets in Quant tests ( #25582 )
...
test=develop
5 years ago
LutaoChu
b158a21bda
fix bug: cross OP behavior is not as expected when axis=0
...
fix the cross OP behavior is not as expected when axis=0
5 years ago
mapingshuo
ed72406558
add gradient Merge Optimizer ( #25625 )
5 years ago
Yi Liu
f45f8363eb
records the offset of log when creating by paddle.distributed.launch ( #25725 )
...
test=develop
5 years ago
Huihuang Zheng
4fd558556a
Fix PE Unit Test Failure, test=develop ( #25693 )
...
Based on the comment here b5f8784cab/paddle/fluid/framework/details/build_strategy.h (L49)
The unit test which compares Reduce and AllReduce must have diff. The PR_CI_Night runs on P40 machine and it has 8GB GPU, which is smaller than the 16GB normal CI machines. So we decrease the batch size in the past to make it runnable: https://github.com/PaddlePaddle/Paddle/pull/24651/files . Decreasing the batch size makes the difference occurs often. So this PR replace the absolute delta by relative delta.
Before this PR, the unit test failure happens with probability about 1/100. After this PR it doesn't happen.
5 years ago
Zhen Wang
cea5086853
Fix the double grad bug for the star gan. ( #25655 )
...
* fix the double grad bug for the star gan. test=develop
* update the retain_graph parameter doc. test=develop
* add the unit test for the retain_graph parameter. test=develop
5 years ago
Chen Weihang
e8caffbb4a
fix jit.save input_spec type change problem ( #25683 )
...
* fix jit.save input type change error
* add unittes
5 years ago
mapingshuo
ea60e64470
correct the LookaheadOptimizer programDesc, test=develop ( #25688 )
5 years ago
qingqing01
b5f8784cab
Refine Model of high level API ( #25559 )
...
* Refine Model
1. Take the network (instance of Layer) as the input of Model.
2. Refine set_dict/load_dict of Layer.
3. Refine Input interface, so update code sample about Input
5 years ago
xujiaqi01
4152d39962
add fleet metric ( #25463 )
...
* add fleet distributed metrics
* test=develop
5 years ago
Chen Weihang
c9d6f6335c
Remove useless warning in executor #25692
5 years ago
Leo Chen
4ec1251a1e
Refine squeeze, test=develop ( #25281 )
...
* refine squeeze, test=develop
* update squeeze, test=develop
* refine compile-time infershape, test=develop
* add more unittest, test=develop
* follow comments, test=develop
* add update_api, test=develop
* follow comments, test=develop
5 years ago
Dong Daxiang
28064c2dc9
fix gen nccl id bug ( #25669 )
...
* fix gen nccl id bug
5 years ago
cnn
70cee22fde
New features, add sinh and cosh op, test=develop ( #25495 )
...
* New features, add sinh and cosh op, test=develop
* remove duplicate test function and remove out paramters, test=develop
* Add out paramters temporary, remove later. test=develop
* remove out args, PR 25570, test=develop
* remove TestParameter, test=developx
* add test api for static dygraph, test=develop
* add backword unittests for sinh and cosh, test=develop
5 years ago
Zhang Ting
a1350744eb
register fp16 kernel, test=develop ( #25630 )
5 years ago
mapingshuo
5453a912fe
add fp64 support in sequence_pool, test=develop ( #25662 )
...
add fp64 support in sequence_pool, test=develop
5 years ago
LielinJiang
8dea7bed2a
Add some transform apis ( #25357 )
...
* add more vision transfrom apis
5 years ago
Leo Chen
417b243968
fix best_fit_allocator_test on windows, test=develop ( #25650 )
...
* fix best_fit_allocator_test on windows, test=develop
* enable best_fit_allocator_test and test_math_op_patch_var_base, test=develop
5 years ago
xujiaqi01
3448455b71
fix dataset py3 ( #25012 )
...
* fix dataset py3 error
* test=develop
5 years ago
Leo Chen
a4512dae30
fix test, test=develop ( #25634 )
5 years ago
Leo Chen
1ab4101d6c
add ci check for changing op-related api without core.ops, test=develop ( #25596 )
...
* add ci check for changing op-related api without core.ops, test=develop
* generate api_source_md5 file when build, test=develop
* add failed example, test=develop
* add failed example, test=develop
* handle exception, test=develop
5 years ago
Shibo Tao
e3736d73cf
add op multiply, delete op elementwise_mul from math.py. ( #25480 )
...
* add op multiply, delete op elementwise_mul from math.py. test=develop,test=document_fix
* bug fix. test=develop,test=document_fix
* bug fix. test=develop,test=document_fix
* bug fix. test=develop,test=document_fix
* bug fix. test=develop,test=document_fix
* add unittest for multiply op. test=develop.
* fix code style. test=develop
* use random input. test=develop
* add test error case for static computation graph. test=develop
* add np.random.seed(7)
* increase input ndarray size. test=develop
* change float32 to float64. test=develop
5 years ago
Huihuang Zheng
60da88540f
[Dy2stat] Modify print for dynamic type ( #25612 )
...
Modify the print in Dy2stat for dynamic type. Unit test is covered in old test_print.py
5 years ago
Aurelius84
dfe4e67e7a
Add friendly Error message in save_inference_model ( #25617 )
5 years ago
Aurelius84
ca1185d06b
[Dy2Stat] Fix scope in run_program_op ( #25579 )
...
* add reinforcement learning model test=develop
* align backward test=develop
* add gym in paddle_build.sh test=develop
* rm pip install in script test=develop
* refine paddle_build.sh test=develop
* fix sed error in macOS test=develop
* polish code test=develop
* fix scope problem
* refine code by reviewer comment
5 years ago
wangchaochaohu
2092660c43
Ones op for API 2.0: remove the device and out parameters ( #25497 )
5 years ago
wangchaochaohu
4a44ffdd24
refine the eye Op for API 2.0 test=develop ( #25295 )
5 years ago
zhupengyang
cd933c0aa2
refine error message of randint ( #25613 )
5 years ago
Zhou Wei
f8ec5f0fce
just skip case of distribute on windows ( #25581 )
...
just skip case of distribute on windows
5 years ago
LutaoChu
bbe8f7bdcd
update cross op parameters for API 2.0
...
* update cross op parameters
5 years ago
Zhou Wei
1ab60544f2
windows CI scripts for xly,test=develop,test=win ( #25533 )
...
windows CI scripts for xly
5 years ago
Huihuang Zheng
a0b3c0dde8
Write Simnet Correctly and Enable Multiple Return Test ( #25574 )
...
We found that the reason of multiple return error in SimNet is that I wrote wrong task_mode. If we set task_mode as "pairwise" correctly, which is a format of the model input data, the multiple return won't have problem in the unit test. In this PR we corrected the task_mode and enable multiple return in SimNet unit test.
5 years ago
Dong Daxiang
e657d7062d
fleet base initial implementation and the API ( #25442 )
...
refactor fleet api under paddle.fleet
update DistributedStrategy
5 years ago
Aurelius84
1a5d3defb1
[Dy2stat] Add Reinforcement learning unittest ( #25445 )
...
* add reinforcement learning model test=develop
* align backward test=develop
* add gym in paddle_build.sh test=develop
* rm pip install in script test=develop
* refine paddle_build.sh test=develop
* fix sed error in macOS test=develop
* polish code test=develop
5 years ago
zhupengyang
5a2d15a1d0
arange API: start default is 0, end default is None ( #25452 )
5 years ago
Chen Weihang
630f23ced3
fix test pe seresnext unittests failed on windows ( #25584 )
5 years ago
Peihan
885e88552a
resolve inference_pass_test input lodtensor case, test=develop ( #25541 )
...
* refine infer ir pass tests, test=develop
* commit to change copy_from_cpu input to np array, test=develop
5 years ago
Huihuang Zheng
0d8545f818
Enable MNIST Multiple 'return' as Unit Test ( #25556 )
...
Enable multiple "return" statement in MNIST as Unit test in dy2stat.
5 years ago
Leo Chen
76d1f8a1e9
fix test_activation_op, test=develop ( #25562 )
...
* fix test_activation_op, test=develop
* remove paddle.mul related unittest, test=develop
5 years ago
Shibo Tao
6602ccf4ca
delete mul op. ( #25499 )
...
* delete mul op. test=develop,test=document_fix
* bug fix. test=develop,test=document_fix
5 years ago
WuHaobo
73409d5039
Fix log1p ( #25488 )
5 years ago
Huihuang Zheng
d8fe517bf8
Add Support for SelectedRows for Transpose OP and Fix a Bug That SelectedRows Cannot be Supported in SimNet ( #25536 )
...
This PR fixes a bug that SelectedRows cannot be supported in SimNet. The reason of this bug is that dygraph basic_engine didn't copy var's type when the var needs to be accumulated during backward. So when a var is SelectedRows and needs to be accumulated, like SimNet which calls net for two times, the var's type will be changed to default LoDTensor thus bug happens. To fix it, we just also copy the type.
Without this PR, the accumulated SelectedRows parameters in dygraph will be changed into LoDTensor. So when we fixed the bug of supporting SelectedRows in SimNet, we found `test_imperative_lod_tensor_to_selected_rows` failed and threw the error that SelectedRows was not supported for Transpose OP. To fix it, too, this PR also added support for SelectedRows for Transpose OP.
5 years ago
liym27
0f8dc611c8
[Dy2Static] Convert assert stmt with new function `convert_assert`. ( #25551 )
5 years ago
Aurelius84
cf3c51a6ad
[Dy2Stat] Remove op call stack in PartialProgram ( #25420 )
...
* remove op call stack test=develop
* fix typo test=develop
5 years ago
Shibo Tao
71c71e684c
fix logical_* ops' doc ( #25479 )
...
* fix doc of logical_* op.
* fix doc of op pow.
* fix comment syntax error9D
* fix operator reciprocal demo.
* fix logical_* ops' doc. test=develop,test=document_fix
* bug fix. test=develop,test=document_fix
* bug fix. test=develop,test=document_fix
* bug fix. test=develop,test=document_fix
* bug fix. test=develop,test=document_fix
5 years ago