liuyuhui
66596bd20f
【paddle.fleet】solve the initial configuration about fleet and rolemaker ( #26368 )
...
* solve the initial configuration about fleet and rolemaker
Co-authored-by: seiriosPlus <tangwei12@baidu.com>
5 years ago
WangXi
ed102ea1b5
【API】Add sign and tanh api ( #26357 )
5 years ago
WangXi
45711dade7
【API】rename div to divide, add floor_divide, remainder ( #26434 )
5 years ago
Zhong Hui
f5d1349826
add binary cross entropy with logit loss ( #26468 )
...
* add binary cross entropy with logit loss
5 years ago
LutaoChu
4e0c6d91aa
add paddle.tensor.linalg.diag API, diag_v2 OP and CUDA kernel
...
add paddle.tensor.linalg.diag API, diag_v2 OP and CUDA kernel.
5 years ago
zhupengyang
f8863e0603
leaky_relu and LeakyReLU: alpha->negative_slope ( #26216 )
5 years ago
ShenLiang
c609066074
Add Matmul op ( #26411 )
...
* add matmul_v2
5 years ago
huangjun12
412eca679f
[API2.0] add dropout, dropout2d and dropout3d in nn.functional and nn.layer ( #26111 )
...
* [API2.0] add dropout, dropout2d and dropout3d, test=develop
* refine Interface and assertion after review, test=develop
* fix alias p=1 and use scale, test=develop
* fix doc and training, test=develop
* fix doc in Dropout2D, test=develop
5 years ago
zhupengyang
57e124298d
var, std: input->x, adjust attr order, remove out, add docs ( #26446 )
5 years ago
ShenLiang
190c695733
fix scatter doc ( #26248 )
...
* fix the comment of scatter
5 years ago
Leo Chen
aa2a9b5d89
add bernoulli op ( #26511 )
...
* add bernoulli op
* fix cuda kernel and add unit test
* refine doc
* fix uniform
5 years ago
littletomatodonkey
0d1a62e908
test=develop rename CosSim interface ( #26522 )
5 years ago
Li Fuchen
dbf232a95b
add functional ctc_loss and CTCLoss class. ( #26384 )
...
* add functional ctc_loss and CTCLoss class.
* modified docstring of ctc_loss and CTCLoss
5 years ago
ShenLiang
b6eb37f5b3
add error message for cholesky ( #26444 )
...
* add error message
5 years ago
QingshuChen
138ecf24aa
support Baidu Kunlun AI Accelerator ( #25959 )
...
* support Baidu AI Accelerator
* test=kunlun
* minor
* test=kunlun
* support xpu op in separate file
* test=kunlun
* update XPU error message and remove duplicated code
* test=kunlun
* minor
* test=kunlun
* minor
* test=kunlun
5 years ago
lilong12
5f2c0e7e95
[2.0 api] fix the example codes in doc strings ( #26428 )
...
* fix the example codes, test=develop
5 years ago
wawltor
ecfb89e133
Update the error message for the margin_ranking_loss
...
Update the error message for the margin_ranking_loss
5 years ago
chajchaj
5407e327a4
add cross_entropy to nn/layer and nn/functional, test=develop ( #26478 )
...
* add cross_entropy to nn/layer and nn/functional, test=develop
* use functional/cross_entropy in layer/CrossEntropy
* use functional/cross_entropy in layer/CrossEntropy, test=develop
5 years ago
wangchaochaohu
e167e87974
【API2.0】add masked_select Op for API2.0 ( #26374 )
5 years ago
Chen Weihang
c09de13ec4
Refine jit load model by extra_var_info ( #26461 )
...
* refine load model by extra_var_info
* polish unittest for coverage
5 years ago
Dong Daxiang
83cd185947
【paddle.fleet】Meta from optimizer ( #26392 )
...
* consider the combination of different strategies to work together
5 years ago
pangyoki
bdac6bc880
Rename uniform_random API ( #26347 )
...
* Rename uniform and gaussian APIs
* rename uniform_random API as uniform
* Fixed unittest
* fixed unittest AttributeError
* Fixed unittest
* Add uniform function rather than alias
* remove templatedoc
* solve conflict and fix doc code
* fix doc code
5 years ago
Zhou Wei
ce7d5263e6
[2.0API]Bind method for tensor and Variable ( #26416 )
...
* binding tensor method
* binding tensor method
* binding tensor method
* Binding methods for class Tensor and Variable
5 years ago
Yang Zhang
e662d1e0b7
Update `paddle.clamp` ( #25906 )
...
* Update `paddle.clamp`
rename to `paddle.clip`
add fast path for dygraph mode
remove `out`
rename `input` -> `x`
update doc sample
* Fix leftover `Variable` wording
* Indent doc with spaces
* Remove `:alias` in docs
* Update `enable_imperative` -> `disable_static`
* Remove `imperative`
also trigger CI
* Update tests for better coverage
* Rebase to fix `cosine_similarity`
* Fix `cosine_similarity` some more
5 years ago
pangyoki
644dfd7dd5
Release Distribution base class and Normal, Uniform class ( #26355 )
...
* fixed static module
* solve conflict
* Add Distribution base class, Uniform class and Normal class
* release Distribution class and Normal, Uniform class
* Add Doc args explaination
* save distributions.py and process in distribution.py
* delete useless function in test_distribution
* Add NormalNumpy test class
* Add probs in NormalNumpy
* add distribution to paddle init
* Add Distribution base class and name attribute unittest
* Change Doc
* Change Doc
* adjust format
* Fixed Doc Code
* implement probs and change Variable to Tensor
* Add name for all functions and add name unittest
* support int datatype
* Add dynamic mode
* optimize test_distribution static and dygraph
5 years ago
Bai Yifan
74836ec7b7
[2.0API]Add adaptive_avg_pool_2/3d ( #26369 )
...
* add adaptive_avg_pool2d
* add adaptive_avg_pool3d
5 years ago
Qi Li
8d194524ba
hardtanh prelu softmax, test=develop ( #26431 )
5 years ago
zhupengyang
6e5670b8bd
mean: not support int32, int64; add check for axis ( #26401 )
5 years ago
wawltor
6e6567f3a1
reduce the time cost for the testcase of test_nn_elementwise_grad ( #26451 )
5 years ago
Huihuang Zheng
ab34c83d98
Remove cudnn conv in unittest, test=develop ( #26489 )
...
Remove cudnn conv in Unittest because the cudnn conv, which is assigned to OP owner, hasn't been fixed.
5 years ago
wawltor
1080be3353
update the test_mean test case for bug fix
...
update the test_mean test case
5 years ago
Zhong Hui
c10cf6d240
Fix the API of bce loss and add functional API binary_cross_entropy ( #26012 )
...
Fix the API of bce loss and add functional API binary_cross_entropy
5 years ago
Chen Weihang
21ea2976dd
fix static dataloader default pin memory set ( #26390 )
...
* fix static dataloader default pin memory set
* fix related unittests
5 years ago
Chen Weihang
8c9229310c
reduce iter time to reduce exec time ( #26388 )
5 years ago
zhupengyang
4ad504e7c7
hardshrink: support threshold < 0 ( #26403 )
5 years ago
lilong12
e92f770c42
Add collective ops (reduce) ( #26340 )
5 years ago
wangchaochaohu
bdb805505e
【API2.0】add numel API for paddle test=develop ( #26311 )
5 years ago
Chengmo
623e14fbc5
disable test_dist_fleet_ctr ( #26507 )
...
disable test_dist_fleet_ctr
5 years ago
wangchaochaohu
2073ffc04d
Enhance the data type of linspace API ( #26247 )
5 years ago
guofei
bb7fd0974f
Add paddle.tensor.math.prod ( #26351 )
...
* Add new API: paddle.prod
test=develop
5 years ago
hong19860320
40d193ed17
Add the ReLU6, Tanhshrink, SELU, Softplus, Softshrink and Softsign for the api 2.0 ( #26376 )
5 years ago
Peihan
6e13e86ab3
verify correctness of dy2static model by using paddle-inference api ( #26372 )
...
* verify correctness of dy2static model by using paddle-inference api
* update python doc style
5 years ago
tangwei12
d12ac984bf
disable UT temp ( #26404 )
...
* disable UT temp
5 years ago
tangwei12
39bd2fb5e4
add print test_dist UT elapsed time ( #26397 )
...
* add print test_dist UT elapsed time
* UT elapsed time optimize
5 years ago
Aurelius84
9bcfc1a804
Fix paddle.nn.data in new unittest ( #26484 )
...
* Rename `Input` into `InputSpec`
* remove alias
5 years ago
liym27
ac2010f4b6
[Fix test_resnet timeout] Reduce batch_size to 2 to avoid unittest timeout.( #26449 )
5 years ago
ceci3
fd66d76231
add weight_norm & remove_weight_norm ( #26131 )
...
* add weight_norm, test=develop
5 years ago
liym27
adba432f27
[API 2.0] Add api paddle.reshape(x, shape, name) ( #26338 )
...
(1) Add api paddle.reshape(x, shape, name);
(2) Use Tensor replaces Variable. test=develop
5 years ago
ShenLiang
256dc6ee48
set_default_dtype only support float ( #26435 )
5 years ago
123malin
57d434df5d
add save/load for parameter server ( #26235 )
...
* add save/load for parameter server
5 years ago
Aurelius84
0cc63cc343
[Paddle2.0] Rename hapi.Input and move `data` api ( #26396 )
...
* Rename `Input` into `InputSpec`
* fix argument place of Input api
5 years ago
WuHaobo
a57d63a0f2
Fix erf ( #26426 )
5 years ago
Chen Weihang
7c1ff38e01
Enhance add_parameter check for dygraph layer ( #26188 )
...
* enhance add parameter check for layer
* add unittest for coverage
* remove uninit test case
* enrich unittest ccase
* trigger ci check
5 years ago
yukavio
8c48c7daec
Add new one hot function in nn.functional ( #26183 )
...
* add input.py file
* write input.py
* fix init file
* add unit tests
* fix dygraph and input shape
* Revert "fix dygraph and input shape"
This reverts commit 89ad8664124c1872640b68c0a4418c377ad6aa6f.
* fixed pylint
* fix deprecated
* fix old op
* fix old op
* set check_dygraph=True
* Revert "set check_dygraph=True"
This reverts commit a8e93e33281f84e5f6fbc2b4bf05ea3e63611519.
* test commit
* fix doc and change test file name
5 years ago
Zhang Ting
6914a12f82
rename the inputs of allclose ( #26360 )
...
* rename input
* add unittest, test=develop
* use paddle.data instead of fluid.data, test=develop
5 years ago
Guanghua Yu
e52e7944cf
add paddle.nn.SmoothL1Loss,test=develop ( #26398 )
5 years ago
littletomatodonkey
bcf03273f6
add pad func ( #26106 )
...
* add pad func
* add pad
* test=develop, add pad op and apis
* restore pad2d
* test=develop, fix paddl declare
* fix pad interface
* test=develop, fix pad
* test=develop, add all pad api and cos_sim
* test=develop, remove padding default value
* test=develop, rename var to tensor
* test=develop, add more tests
* test=develop, rename tovar to totensor
* test=develop, fix init
* test=develop, add more test
* test=develop, add more tests
5 years ago
lijianshe02
a39bd3acc9
reduce the execution time of affine_channel op unittests ( #26393 )
...
* reduce the execution time of affine_channel op unittests
5 years ago
Chengmo
eeeef957c7
Fix ps gpu ( #26218 )
...
* support ps-gpu
5 years ago
Zhong Hui
6cbeafb6c0
add zero norm, inf norm support for p_norm op ( #26364 )
...
* add zero norm, inf norm support for p_norm op
* fix the invalid argument check, fix the dtype problem in test case.
5 years ago
liym27
6cd67a8160
[API 2.0] Fix api sum:(1)input->x;(2)dim->axis;(3)keep_dim->keepdim ( #26337 )
...
* 1.Fix api sum:(1) input->sum; (2)dim->axis; (3)keep_dim->keepdim.
* 2. fix bug when len(axis) == len(x.shape).
5 years ago
Kaipeng Deng
c45481d7be
add Sampler/SequenceSampler/RandomSampler ( #26375 )
...
* add Sampler/SequenceSampler/RandomSampler. test=develop
5 years ago
ceci3
56890dc729
Add SyncBatchNorm ( #26032 )
...
* add SyncBatchNorm,test=develop
5 years ago
GaoWei8
1fbee267d4
remove scope in cudnn lstm ( #25188 )
5 years ago
Qi Li
61800f4a1e
elu gelu relu logsigmoid, test=develop ( #26304 )
...
* logsigmoid and LogSigmoid, test=develop
* add elu gelu relu, test=develop
* update to_variable to to_tensor, test=develop
* address review comments, test=develop
* address review comments, test=develop
* change to_variable to to_tensor in test, test=develop
5 years ago
wanghuancoder
ea6716a55b
Add check if fluid.data() variable no feed data ( #25858 )
...
* add check if fluid.data() variable no feed data, test=develop
* Add testcase for feed check, test=develop
5 years ago
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
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
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
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
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
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
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
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
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
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
ShenLiang
5113aae6ea
fix the doc of inverse, dot, cholesky ( #25860 )
...
* fix the doc of inverse, dot, cholesky
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
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
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
2214394edc
softmax: refine doc; input->x ( #25976 )
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
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
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
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
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
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
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
Yi Liu
427c5529ea
add localsgd meta optimizer ( #25758 )
...
* add localsgd meta optimizer
5 years ago
lilong12
f40a50d124
add pipeline optimizer for fleet ( #25768 )
...
* add pipeline optimizer
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
32b9577b2a
refine the split op for API 2.0 test=develop ( #25320 )
5 years ago
lilong12
5f30e57cdd
fix test_pipeline, test=develop ( #25808 )
...
* fix test_pipeline, test=develop
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
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
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
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
mapingshuo
ed72406558
add gradient Merge Optimizer ( #25625 )
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
xujiaqi01
4152d39962
add fleet metric ( #25463 )
...
* add fleet distributed metrics
* test=develop
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
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
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
Leo Chen
a4512dae30
fix test, test=develop ( #25634 )
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
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
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
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
LielinJiang
7129f544f0
Add bilateral_slice op ( #25401 )
...
* add bilateral slice op
5 years ago
YUNSHEN XIE
70554c9f97
disable TestSoftmaxFP16Op2 in test_softmax_op ( #25519 )
5 years ago
wangchaochaohu
e4017e5c4f
refine the index_select Op for API 2.0 test=develop ( #25296 )
5 years ago
zhupengyang
2250120245
randint API: remove out, devive, stop_gradient; add name ( #25433 )
...
* randint API: remove out, devive, stop_gradient; add name; test=develop
* test=develop
* test=develop
* test=develop
5 years ago
yaoxuefeng
5d3766ff3d
modify flip test=develop ( #25312 )
...
According to paddle 2.0 standard
1, change flip api attr name 'dim' to 'axis'.
2, support empty axis
3, change example code to imperative mode.
5 years ago
zhupengyang
f8eccb0b1c
zeros_like API: remove device; input -> x ( #25413 )
5 years ago
yaoxuefeng
f795a1bf12
modify meshgrid test=develop ( #25319 )
...
According to paddle 2.0 standard.
1, chang api to def meshgrid(*args, **kwargs) we hide name argument in **kwargs.
2, add relate ut.
3, change example code to imperative mode
5 years ago
YUNSHEN XIE
62aeef7cf9
disable test_pipeline ( #25518 )
5 years ago
liym27
10d572a707
[Dy2stat] Add Seq2Seq Attention model as ProgramTranslator Unit Test ( #25422 )
5 years ago
zhupengyang
25029254bc
randn API: remove out, devive, stop_gradient; add name ( #25409 )
5 years ago
Chen Weihang
41d2247275
[Dy2static] Refactor ProgramTranslator save_inference_model API ( #24989 )
...
* experimental refactoring, test=develop
* add TranslatedLayer & remove StaticModelRunner, test=develop
* revert tracedlayer change, test=develop
* fix test_mnist unittest error, test=develop
* add doc & examples, test=develop
* polish doc details, test=develop
* add imperative.jit module, test=develop
* change TranslatedLayer pos, test=develop
* adjust jit module import path, test=develop
* polish doc based review result
* add SaveLoadConfig.separate_params to save paraams separately
* add Layer.buffer support, test=develop
* polish doc details based review result, test=develop
* polish details baesd review comments, test=develop
* add empty str check for param, test=develop
* add unittests, test=develop
* polish details based review comment, test=develop
* remove blanks in comment, test=develop
* polish doc details, test=develop
* update imperative doc link, test=develop
* add api attr for load, test=develop
5 years ago
tangwei12
fd961b0dfb
Fix/distibuted fleet ctr ut ( #25474 )
...
* test_dist_fleet_ctr disable, test=develop
5 years ago
liym27
435fc4f0af
[while grad]Support pruning op in find_op_path about while sub-block when appending backward ( #25330 )
...
Prune OPs which are not related with loss in while sub-block when constructing backward OP path.
5 years ago
yaoxuefeng
aaa7cbd56f
modify trace api test=develop ( #25397 )
5 years ago
Huihuang Zheng
f9ac5fb992
[Dy2stat] Fix Memory Optimization in run_program_op and Add SimNet as Unit Test ( #25383 )
...
Add Similarity Net as unit test. During the unit test, we found three problems:
1. The run_program_op has memory optimization error when running dy2stat net multiple times.
2. The support for SelectedRows can cause problem in dy2stat.
3. The return grammar has problem.
This PR fixes the 1. problem but modify codes for the 2. 3. problems to make PR smaller. I will fix those two problems in the next PR(s)
5 years ago
yaoxuefeng
c42d662e2a
modify roll test=develop ( #25321 )
5 years ago
wangchaochaohu
bdc2c2dba8
full Op:remove device, out and stop_gradient parameter for API 2.0 test=develop ( #25257 )
5 years ago
wangchaochaohu
0b2ec49ff9
refine the linspace Op for API 2.0 test=develop ( #25284 )
5 years ago
Zhou Wei
914ff10a8f
fix state dict to save/load learning rate scheduler ( #25403 )
...
* fix optimizer.state_dict and LRScheduler.state_dict to save/load dygraph,test=develop
* fix optimizer.state_dict and LRScheduler.state_dict to save/load dygraph,test=develop
* Add a judgment that state_dict/set_dict is used incorrectly,test=develop
* fix some doc error,test=develop
* fix current_step_lr for _LearningRateEpochDecay,test=develop
* remove some unsed code to improve coverage,test=develop
* remove some unsed code to improve coverage,test=develop
5 years ago
zhupengyang
5b573c58e2
randperm API: remove out, devive, stop_gradient; add name ( #25410 )
5 years ago
Zhou Wei
93ad339450
add new API:LambdaDecay,test=develop ( #24801 )
...
add new API:LambdaDecay
5 years ago
Zhen Wang
bb45af02ac
add the c++ part of Imperative QAT. test=develop ( #25446 )
5 years ago
wangchaochaohu
090a331d30
refine the full_like Op for API 2.0 test=develop ( #25294 )
5 years ago
hong
fed0588571
Fix parameter list iterator bug ( #25089 )
...
* fix optimizer parameter is a iterator; test=develop
* fix parameter list None bug; test=develop
* use is not None; test=develop
* change list to iterable; test=develop
5 years ago
Leo Chen
91f7b4e0e3
refine as_lodtensor, test=develop ( #25286 )
...
* refine as_lodtensor, test=develop
* fix test, test=develop
* add unittest, test=develop
* handle nested_list, test=develop
* handle nested_list, test=develop
5 years ago
Jacek Czaja
050a9bf79d
[oneDNN] LRN cleanup ( #25416 )
5 years ago
tangwei12
4b3778a3ee
Revert/barrier for sync ( #25417 )
...
* add retry for prefetch
* Revert "Fix/sync barrier (#25016 )"
This reverts commit be6a315fbd
.
* reopen dist UT, test=develop
* remove fl UT, test=develop
5 years ago
Dong Daxiang
3395008f11
remove async configuration from distributed_strategy.py ( #25425 )
...
test=develop
5 years ago
Kaipeng Deng
01cf8e893f
fix test_multiprocess_dataloader_exception failed on CPU-only version ( #25406 )
...
* fix test_multiprocess_dataloader_exception failed on CPU only version. test=develop
5 years ago
Leo Chen
1e897f66ee
Refine __str__ of VarBase and ParamBase, test=develop ( #25345 )
...
* clean __str__ of VarBase and ParamBase, test=develop
* clean to_string, test=develop
* update unittest, test=develop
5 years ago
ceci3
52be62c5ae
fix instance norm in dy ( #24717 )
...
* fix bn & in in dy, test=develop
* update instance_norm,test=develop
* fix bugs,test=develop
* add more case in unittest,test=develop
* fix,test=develop
* fix,test=develop
5 years ago
Aurelius84
619848fa3a
fix timeout test=develop ( #25412 )
5 years ago
lilong12
e39aa70ec7
add the support for pipeline ( #24560 )
...
* add device_worker for pipeline, test=develop
5 years ago
Huihuang Zheng
30185efdae
Add If-Else-Return of Yolov3 as Unittest ( #25385 )
...
As the title
5 years ago
gongweibao
80f1c50738
Fix typo in interface. ( #24779 )
5 years ago
zhupengyang
eb3173e2b6
rand API: remove out, device, stop_gradient; add name ( #25246 )
5 years ago
Huihuang Zheng
ff7af219f1
Fix a Cudnn Deterministic Random Failure, test=develop ( #25389 )
...
As the title
5 years ago
zhupengyang
6de75082cb
fix test_hsigmoid windows ci ( #25311 )
5 years ago
hong
84f9b9ef49
Connect stop gradient with trainbale ( #25248 )
...
* connect stop_gradient with trainable; test=develop
* add value error message; test=develop
5 years ago
Dong Daxiang
d5e40d1ba9
Paddle fleet distributed strategy ( #25379 )
...
* add paddle.fleet.DistributedStrategy for 2.0
5 years ago
Kaipeng Deng
0954e907f6
fix test_multiprocess_dataloader_exception SIGABRT. test=develop ( #25381 )
5 years ago
Aurelius84
23a958cdf1
fix unittest failed test=develop ( #25392 )
5 years ago
ceci3
fc0da42b73
add Pad2D and LeakyReLU ( #25177 )
...
* add Pad2D and Leaky_ReLU, test=develop
* update,test=develop
* change name,test=develop
* add unittest and redine docs,test=develop
5 years ago
Chen Weihang
869d59ccfe
try to fix two unittests, test=develop ( #25372 )
5 years ago
hong
88e05c4048
fix parallel ssa graph executor test hang; test=develop ( #25358 )
5 years ago
littletomatodonkey
64b4612290
Fix softmax unittest ( #25371 )
...
* test=develop, fix softmax
5 years ago
Zhen Wang
2989c012f2
[DygraphToStatic]Add cast transform for dygraph_to_static. ( #25325 )
...
* add cast transform and its UT for dygraph_to_static.
5 years ago
Aurelius84
bdad383c1d
fix test_mobile_net random failed test=develop ( #25364 )
5 years ago
Aurelius84
a3dfff51ad
[Dy2stat] Disable test_lac on windows ( #25359 )
...
* fix test_lac timeout test=develop
* disable it on windows test=develop
5 years ago
lilong12
3d96601b82
modify pipeline optimizer to only support the mode of sync pipeline training ( #25065 )
...
* modify pipeline optimizer, test=develop
5 years ago
Zhou Wei
b555378e18
fix Layer.__dir__ to show the parameters/sublayers/buffers/attr/method of the Layer ( #25197 )
...
* show the attr and functions of the Layer,test=develop
* add buffer for dir,test=develop
* fix __dir__,test=develop
* fix doc of Layer.__dir__, test=develop
5 years ago
Kaipeng Deng
74468bf428
add mish op. ( #24565 )
...
* add mish op. test=develop
5 years ago
Zhou Wei
8de89e67e9
support tuple/list init for VarBase ( #25231 )
...
* support tuple/list init for VarBase,test=develop
* fix doc of fluid.dygraph.to_variable,test=develop
* fix doc of fluid.dygraph.to_variable,test=develop
5 years ago
Yang Zhang
6d6efafeeb
Add `matrix_nms_op` ( #24400 )
...
* Add `matrix_nms_op`
test=develop
* Make ci happy
test=develop
* Exit early when no detection
test=develop
* Fix license year
test=develop
* Output index as well
test=develop
* Match nms2 lod behavior and add `return_index` flag
test=develop
* Make CI happy
test=develop
* Fix wording
test=develop
5 years ago
tangwei12
9825a9f3ca
disable distributed UT temporary ( #25300 )
...
* disable distributed UT temporary,enable it soon, test=develop
5 years ago
chalsliu
46214e5937
Disable test_conv3d_transpose_op ( #25298 )
...
test=develop
5 years ago
Kaipeng Deng
826c607e0c
Fix test multiprocess dataloader static ( #25287 )
...
* fix test_multiprocess_dataloader_static random fail. test=develop
5 years ago
Aurelius84
ed262b804c
[Dy2stat] Add Sentiment and LAC model for unittest ( #25071 )
...
* add sentiment unittest
* add LAC model
* add test=develop
* rename tmp test=develop
* fix timeout test=develop
* undo tmp_var test=develop
5 years ago
Chengmo
e85fcaa712
Fix fluid.embedding in Distributed Training ( #25174 )
...
* test=develop, fix_embedding
5 years ago
Zhou Wei
c701588b14
add base class of LearningRateEpochDecay, and API: MultiStepDecay, and API: StepDecay ( #24821 )
...
* add new API: MultiStepDecay, a new learing rate strategy, test=develop
* add new API: MultiStepDecay, a new learing rate strategy,test=develop
* add new API: MultiStepDecay, a new learing rate strategy,test=develop
* add base class of LearningRateEpochDecay, and MultiStepDecay, and StepDecay, test=develop
* fix doc to add coverage,test=develop
5 years ago
Aurelius84
494cb36d09
Modify tmp var name prefix in dygraph ( #25280 )
...
* Modify tmp var name prefix in dygraph test=develop
* refine comment test=develop
5 years ago
Aurelius84
82ec247a02
fix random failed on GPU test=develop ( #25293 )
5 years ago
Zhou Wei
c505c4dbea
add new API: optimizer.set_lr ( #24455 )
...
* add new api: optimizer.set_lr, test=develop
* add API doc and example code for optimizer.set_lr,test=develop
* add API doc and example code for optimizer.set_lr,test=develop
* Modified doc to :api_attr: imperative,test=develop
5 years ago
Kaipeng Deng
001c0674ee
disable test_multiprocess_dataloader_static for random fail in Py35 CI. test=develop ( #25265 )
5 years ago
Huihuang Zheng
5e8e6dad72
[Dy2stat] Support Various-Length Return Grammar in Dy2stat ( #25249 )
...
Support Various-Length Return Grammar in Dy2stat. This PR is a follow-up of https://github.com/PaddlePaddle/Paddle/pull/25176 .
The basic idea is putting no-value placeholder variables at `return` statement to make all `return` statement have same length, after that the static graph can have fixed fetch output (code at return_transformer.py). Then remove those no-value placeholder when we finally return dygraph result (code at partial_program.py).
However, various length return in Bert model is still not supported. The dy2stat can change the code as I wish but some ops which check shape at compile time (e.g. Reshape, MatMul) will throw error because of the no-value-placeholder may not have the required shape. Is this a matter? To me, those no-value placeholder will be replaced as really values meeting shape requirements at run time, so I think the solution should be some way to do the compile-time checking. By the way, every time when we have dynamic shape, it often causes problem in dy2stat. We should find a way to handle it in the future.
Fixing various return in Bert is my TODO thing and I will also find some other existing models for verification.
5 years ago
Aurelius84
de27569eca
[Dy2Stat] fix diff of cycle GAN model on GPU ( #25233 )
...
* fix GPU diff test=develop
* refine code test=develop
5 years ago
123malin
f1a9593d69
test=develop, bug fix for index_select and roll op ( #25251 )
5 years ago
tangwei12
f6f7df9cd5
decrease test data, test=develop ( #25252 )
5 years ago
Tao Luo
2d5aa74321
add test_parallel_executor_profiler.py ( #25200 )
...
* add test_parallel_executor_profiler.py
test=develop
* set exec_strategy.num_threads=1
* skip check_profile_result
* add TODO for test_profiler
test=develop
5 years ago
Aurelius84
02adf68dcc
[Dy2stat]Support buffers and register_buffer in Layer ( #24888 )
...
* support to save varBase created in __init__ test=develop
* polish code test=develop
* refine to_static_var test=develop
* refine warning test=develop
* add unitteset for to_static_var test=develop
* fix logger test=develop
* polish buffers en doc test=develop
* fix param_guard test=develop
* refine en doc test=develop
5 years ago
Huihuang Zheng
6f631a27c7
[Dy2stat] Add Basic Support for Grammar 'return' ( #25176 )
...
This PR added basic support for 'return' grammar in dy2stat. It supports the control flow of 'return'.
The basics idea is using a return value variable to store the early return statements and boolean state variables with if-else to skip the statements after the return statements.
**This PR is very basic support. There are some corner cases I didn't develop/test**. For example, 'return None', 'return different length of variables', 'return non-tensor and tensor together', 'no return statement'. **These corner cases will be done in my next PRs**. Target date is this week.
**Note**:
1. for the unit test, I changed test_program_translator.py because the StaticCode of `dyfunc_with_if_else` will change. To guarantee the correctness of `dyfunc_with_if_else`, I also run it in `TestRecursiveReturn` in test_return.py.
2. I commented the early return code in bert_dygraph_model.py because 'return different length of variables' is unsupported now. I also know that there are some other models used early return and we didn't enable it in the unit test. I will add support for it in next PRs and then re-enable those tests.
5 years ago
Aurelius84
cb0472b05a
merge into one function test=develop ( #25184 )
5 years ago
liu zhengxi
68e93d8a17
Fix beam_search InferShape ( #25169 )
...
* fix beam_search infershape, test=develop
* fix beam search op unittest, test=develop
5 years ago
chalsliu
cd4d9122e7
Remove RUN_SERIAL TRUE ( #25179 )
5 years ago
Aurelius84
38d2d13d8b
[Dy2stat] Add CycleGAN model for unitttest ( #25072 )
...
* add cycle_gan_model
* align train test=develop
* modify image_size into 64 to avoid TimeOut test=develop
* TODO in GPU test=develop
5 years ago
FDInSky
1f24c84a3f
fix conv3d_transpose_test timeout error ( #25004 )
...
* test=develop fix conv3d_transpose_test error
5 years ago
Tao Luo
a965ac4c61
disable PE usage in test_profiler.py ( #25172 )
...
test=develop
5 years ago
Tao Luo
9ba585f5bf
fix PE in test_profiler.py ( #25144 )
5 years ago
iducn
f282599229
disable unitest for gcc8( #25134 )
5 years ago
Aurelius84
e8134e873a
[Dy2stat]Refine caches of converting function ( #25085 )
...
* Refine caches of converting func test=develop
* fix if statement test=develop
* refine cache code test=develop
* rm unuse import statement test=develop
* Polish code comment test=develop
5 years ago
Aurelius84
8d6de44012
Refine check_type Error Message for @declarative ( #25098 )
...
* Refine check_type for @declarative test=develop
5 years ago
Chen Weihang
b23801a262
polish tensor set error messag, test=develop ( #25113 )
5 years ago
Zhou Wei
542a226c3e
add new API: set_global_initializer ( #24378 )
...
* add new api (set_global_initializer/reset_global_initializer),test=develop
* add new api (set_global_initializer/reset_global_initializer),test=develop
* fix doc and example code of set_global_initializer,test=develop
5 years ago
Chen Weihang
509d3ec5b7
[Dy2static] Add for iterate or enumerate variable list unittest ( #25100 )
...
* add for iter var list, test=develop
* add enumerate unittest, test=develop
5 years ago
liym27
eb1c0901a6
[Dy2Stat]Remove unnecessary vars from gast.comprehension in LoopTransformer. ( #25094 )
5 years ago
Jacek Czaja
a7944904d3
[oneDNN]elementwise_add and elementwise_mul int8 support ( #24984 )
...
* Start implementing int8 eltwise add
test=develop
* - Fix to Michal PR
* - Fix
test=develop
* - Lint fixes
test=develop
* - Added checking if elementwise_mul can be used
test=develop
* - Added attribs to skip_attrs_set
test=develop
* - Improved broadcasting
test=develop
- fixes to compilation
- fix
- fix
- Lint fixes
test=develop
* - removed redundant condition
test=develop
Co-authored-by: Michal Gallus <michal.gallus@intel.com>
5 years ago
liym27
db601f70cc
[Dy2Stat] Add test for dygraph seq2seq model. ( #25054 )
...
* The arg of append() can be not Tensor temporarily.
* Add Seq2Seq as ProgramTranslator Unit Test.
* set dtype of vocab_size_tensor to int64 to pass Windows-CI.
5 years ago
Leo Chen
fa657b3dbb
fix bug of prelu when rank not equal 4, test=develop ( #25067 )
...
* fix bug of prelu when rank not equal 4, test=develop
* fix prelu inference, test=develop
* fix api, test=develop
* fix shape when mode is chennel, test=develop
* remove debug code, test=develop
* add unittest, test=develop
5 years ago
Huihuang Zheng
2c500c30bd
Handle Windows flaky test ( #25070 )
...
As the title
5 years ago
hutuxian
5822862d8a
Monitor Framework ( #24079 )
...
* Add a StatValue class in the backend to represent a stat.
* Add a singleton StatRegistry to maintain the collection of stats.
* For the sake of code neatness, we only support type of int and float, which can cover most of the scenarios.
5 years ago
Huihuang Zheng
21138c05a8
Add test_yolov3 and test_se_resnet Timeout ( #25076 )
...
Some big models can timeout on Windows CPU machine. I added some timeout properties.
5 years ago
Leo Chen
028de857d4
fix dtype error of compare op, test=develop ( #25059 )
5 years ago
Yiqun Liu
9ed16a4347
Fix random fail because of precision problem in unittest of fusion_group ( #25051 )
5 years ago