WeiXin
b5e662f837
refine jit.save/load to add support for other method, not only forward ( #28376 )
...
* refine jit.save/load to add support for other method, not only forward
* refine the code based on unit tests
* Add unit test for the code
* Add unit test for the code
* Modify the code according to the unit test
* Delete useless comments, save only one info file, etc.
* remove static_mode_white_list.pyc
* edit the code that generate 'extra_var_info'
6 years ago
Zhang Ting
7fe5f9ccad
Fix unittest random failure ( #28363 )
...
* fix random failure
* use two input(x)
* fix model
6 years ago
QingshuChen
6bba8e57b1
fix batch_norm_xpu bug & remove xpusimulator dependence ( #28430 )
...
*test=kunlun
6 years ago
joanna.wozna.intel
7821759d48
Add bfloat16 softmax and gelu ( #28394 )
...
* Add bfloat16 softmax and gelu
* Add pass attr bfloat16_enabled_op_types
* Changes from review
6 years ago
Aurelius84
bd8dfe38ca
[Dy2Stat] Refine code example for 2.0 ( #28440 )
6 years ago
littletomatodonkey
f6834034cc
fix sample code ( #28446 )
6 years ago
zhupengyang
0155f91679
enable softmax unittest ( #28362 )
6 years ago
Aurelius84
2500dca878
[Dy2Stat] Fix bug in convert_call ( #28368 )
...
* Fix bug in convert_call
* refine unittest
* refine code
* refine code
* fix unittest failed
* add assert
6 years ago
Jacek Czaja
ca41541472
[oneDNN]Sum bf16 kernel ( #28382 )
...
* - Added sum bf16 oneDNN
test=develop
* - Fix to UT of sum bf16
test=develop
6 years ago
LielinJiang
b89b4e321d
add fashion dataset ( #28411 )
6 years ago
Kaipeng Deng
463075a82b
add paddle.io.ComposeDataset & paddle.io.ChainDataset ( #28311 )
...
* add paddle.io.ComposeDataset & paddle.io.ChainDataset. test=develop
6 years ago
Qi Li
a4303496b2
[DOC] activation api doc, test=document_fix ( #28405 )
6 years ago
LielinJiang
3c95acc3eb
Remove cv2 dependence of normalize ( #28361 )
...
* rm cv2 dependence of normalize
6 years ago
Leo Chen
44a476c2ab
support cuda pinned place ( #28416 )
6 years ago
lidanqing
12b9587be5
Add conv_bias pass version python test ( #28278 )
...
* add conv_bias pass version test
* update according to reviews
6 years ago
Li Fuchen
f401907775
modified sample code of CTCLoss & ctc_loss by remove disable_static() & print([.*].numpy()) & alias, test=document_fix ( #28403 )
6 years ago
Kaipeng Deng
95b1868366
update DataLoader doc ( #28290 )
...
* update DataLoader doc. test=develop
6 years ago
Leo Chen
71d6220772
Skip reader op in mixed_precision decorator ( #28353 )
...
* skip reader op in mixed_precision decorator
* add ut
6 years ago
Leo Chen
8b2436a776
Add broadcast_shape api ( #28257 )
...
* add broadcast_shape api
* add ut
* follow comments
* add example code, test=dodument_fix
* update example code, test=document_fix
6 years ago
石晓伟
21a63f6f90
enhance the op_version_registry, test=develop ( #28347 )
...
* enhance the op_version_registry, test=develop
* add unittests, test=develop
* enhance the op_version_registry, test=develop
* fix bugs, test=develop
* revert pybind_boost_headers.h, test=develop
* fix a attribute bug, test=develop
6 years ago
Shang Zhizhou
ea851796e5
TensorRT中ernie模型推理性能优化,支持变长输入 ( #28367 )
...
* fp16 result ok
* change -DWITH_NVINFER_PLUGIN toconfig.EnableTensorRtOSS
* auto detect special slice op converter for ernie with trt oss
* ernie oss only support fp16
* fix special_slice_plugin serialize bug
* matmul in tensorrt ok
* ernie unittest ok
* add matmul tensorrt unittest
* remove demo code
6 years ago
Jacek Czaja
84cc61b2cd
[oneDNN] sum op refactor ( #28318 )
6 years ago
Wilber
6f0f45f69c
copy_to_cpu support uint8 ( #28372 )
6 years ago
Wilber
09fd2b2aab
Paddle support compile on sw ( #27858 )
6 years ago
Double_V
17db031a05
fix pool bug, test=develop ( #28359 )
6 years ago
Leo Chen
6115c14fca
Pool2d cuda kernel supports fp16 ( #28316 )
...
* pool2d cuda kernel supports fp16
* fix compile issue of template
* add ut
6 years ago
Guo Sheng
9a600df373
Add rnn_op ( #28197 )
...
* Add rnn_op.
test=develop
* Fix rnn_op grad maker's drop_empty_grad.
test=develop
6 years ago
Huihuang Zheng
acc11c2a62
Retry CUDA Initialization to Fix Random Failure, test=develop ( #28323 )
...
This PR is follow up of #28213 . On that PR we tried to decrease GPU usage, however the CI still randomly failed. So I added retry logic for the initialization of nccl and cusolver. If the initialization failed, we can retry to avoid the random failure.
6 years ago
wangguanzhong
5262b02585
add generate_proposals_v2 op ( #28214 )
...
* add generate_proposals_v2 op
6 years ago
Guo Sheng
b96869bc31
Fix lr setting of AdamW when lr is an instance of LRScheduler ( #28300 )
...
* Fix lr setting of AdamW when lr is an instance of LRScheduler.
test=develop
* Fix static graph test mode in test_adamw_op.py.
test=develop
6 years ago
Aurelius84
57e4411ab5
[Dy2stat] Support to modify value of buffer tensor ( #28328 )
...
* [Dy2stat] Support to modify value of buffer tensor
* remove "defaultTest"
* fix name confliction
6 years ago
石晓伟
d9b5f1261c
update the version of pybind, test=develop ( #28284 )
...
* update version pybind to v2.4.3, test=develop
* update unittests, test=develop
6 years ago
Leo Chen
18c86fb2fb
hide some logs of p2p ( #28307 )
6 years ago
Chen Weihang
4086f48ea1
Check and fix tensor and scalar type promotion ( #28299 )
...
* check and fix tensor and scalar type promotion
* fix else branch error
* fix scalar method error
* fix test_math_op_path unittest
* add future division for unittest
* rm useless bin file
6 years ago
LielinJiang
fb1e0c93c9
Make vision datasets return PIL.Image as default ( #28264 )
...
* return pil image as default according backend
6 years ago
zhulei
26ede6e07e
Add median api. ( #28310 )
...
* Add median api.
* Add median api.
* Add median api.
* Add median api.
* Add median api.
6 years ago
wanghuancoder
3ccc0a2f5e
enable test_parallel_executor_fetch_isolated_var ( #28219 )
...
* enable test_parallel_executor_fetch_isolated_var, test=develop
* add enable_static, test=develop
* set test_parallel_executor_fetch_isolated_var RUN_TYPE=DIST, develop=test
6 years ago
joanna.wozna.intel
571a63e7ec
Add bf16 transpose2, reshape2, concat ops ( #28195 )
6 years ago
Guanghua Yu
e8f2614da5
Enhance multiclass_nms op to support LoD for dygraph mode ( #28276 )
...
* Enhance multiclass_nms to support LoD for dygraph mode
* fix some error in multiclass_nms
* update GetLodFromRoisNum to GetNmsLodFromRoisNum
6 years ago
LielinJiang
0351168967
Fix lr scheduler step error in hapi when use static mode ( #28297 )
...
* fix lr scheduler
* fix code style
6 years ago
Leo Chen
8953038400
Fix transpose in conv cudnn kernel when addto enabled ( #28295 )
6 years ago
chentianyu03
6cebd71454
add + - * / @ [] operator to ComplexVariable ( #28217 )
...
* add + - * / @ [] operator to ComplexVariable, also add unittest
* fix circular reference bug
* fit for py2.7
* remove reverse oprators which not supported now
6 years ago
Zhong Hui
a98c69b6c6
fix dygraph gather api
...
fix dygraph gather api
6 years ago
Leo Chen
2853f0c4f9
Set static shape for shape tensor with constant [part 1] ( #28275 )
...
* set static shape for shape tensor with constant
* remove debug code
* fix typo
* add ut
* refine code
* refine example
6 years ago
Chengmo
4dc8c44ba1
【Paddle.Fleet】Fix fleetrun heter ( #28252 )
...
* fix fleetrun heter ps on paddlecloud
6 years ago
pangyoki
8f83d5d875
fix AMP auto_cast and grad_scaler En doc ( #28177 )
...
* fix AMP auto_cast and grad_scaler En doc
* fix indentation problem
* change Conv2d to Conv2D
6 years ago
Zhou Wei
b63e0ccb4a
fix load check_point bug of LinearWarmup ( #28280 )
6 years ago
Jacek Czaja
c11d9b3035
[oneDNN ] conv2d fwd&bwd optimization ( #27871 )
6 years ago
LiuChiachi
d932b5618f
set random seed to in test_export_deploy_model ( #28274 )
6 years ago
wangxinxin08
41d26a8287
update matrix nms op to api 2.0 ( #28265 )
...
* update matrix nms op to api 2.0
* modify code according to review
6 years ago
Leo Chen
7fcb32ddf3
fill_constant op supports NINF ( #28270 )
6 years ago
wangchaochaohu
495a9ceb95
fix the input error of size Op ( #28272 )
6 years ago
liym27
b1eb28d74b
[Dy2Stat-log] Call warnings.warn() to display the warning-message only once when calling StaticFunc.__call__ or ProgramTranslator().get_output ( #28260 )
6 years ago
Zhang Ting
fdc06f2158
add Fuse bn add act pass ( #28196 )
...
* add fuse_bn_add_act pass
6 years ago
Chen Weihang
813b2ade34
Enrich the python error types of paddle & polish format ( #28124 )
...
* add multiple exception type
* define all exception & polish compile pystack
* mapping paddle error to python exception
* polish static mode error format
* fix failed unittests
* fix dytostatic test_error
* fix check_nan_inf failed
* add unittest for coverage
* revert some code try to solve compile error
* refactor enforce & error change
* polish code & add unittest
6 years ago
Aurelius84
a5c18204e9
[Dy2stat]Join break cond with while cond in some pattern ( #28171 )
...
* Join break cond with while cond
* remove usless code
* refine the if code
* Split into BreakTransfromOptimizer
* add BreakTransformOptimizer in ast_transformer
* add more comment
6 years ago
Aurelius84
7a3a05cccb
[Dy2Stat]Support to save model with nested output ( #28224 )
6 years ago
Kaipeng Deng
4671d85a03
fix DataLoader return same format between static & dynamic in single mode ( #28176 )
...
* fix DataLoader return same format between static & dynamic in single mode. test=develop
6 years ago
Adam Osewski
7db747d9e8
oneDNN BatchNorm + Act fusion pass. ( #27912 )
6 years ago
Zhou Wei
fb7f85291b
fix print tensor place,add cpu/cuda/pin_memory API for Tensor ( #28200 )
6 years ago
cnn
9940871888
[cherry pick ] cherry pick 28108 28198 28199 from release2.0rc ( #28215 )
...
* Release 2.0rc cherry pick api rename #28108 (#28184 )
* rename count_include_pad-->exclusive return_indices-->return_mask
* remove track_running_stats
* fix typo.
* rename xxxd-->xxxxD
* solve conflicts
* 2.0rc api add all any (#28199 )
* reduce trt warning message (#28011 )
add paddle.enable_static() on sample code
alias recude_all-->all, reduce_any-->any
add import reduce_all and reduce_any in python/paddle/tensor/math.py
import all and any in python/paddle/tensor/__init__.py
remove all and any OP in python/paddle/tensor/logic.py, add all and any OP in python/paddle/tensor/math.py
fix import error
remove TestAllAPI temporary
* fix doc of recdue_all and reduce_any, test=document_fix
* fix typo
* fix unittest for all and any API
Co-authored-by: Pei Yang <peiyang@baidu.com>
* rename conv_transposeXd-->convXd_transpose (#28198 )
* fix sample code of reduce_all and reduce_any
Co-authored-by: Pei Yang <peiyang@baidu.com>
6 years ago
Leo Chen
f4f823c860
Refine the format of printing tensor 2 ( #28216 )
...
* refine format
* update doc
* handle uninitialized tensor
* add ut
6 years ago
tianshuo78520a
11089cacdb
Fix xpu notest ( #28204 )
...
* Fix xpu notest;test=kunlun
* fix
* test=kunlun
* test=kunlun
6 years ago
mapingshuo
81244fbfab
add sharding strategy in fleet( #27900 )
...
* add sharding
6 years ago
Huihuang Zheng
a1e7fd4a13
Fix test_parallel_executor_test_while_train Random Failure by Decreasing GPU Usage ( #28213 )
...
Recently, test_parallel_executor_test_while_train randomly failed on CI. On all CI logs, it showed NCCL initialization failed or cusolver initialization failed. I found online that those failure is usually caused by GPU shortage. Those API calls CUDA APIs directly so it shouldn't be the problem of allocator. It may be somewhere in PaddlePaddle increases GPU usage.
However, I run this test for 1000 times on my machine and the CI machine, either of them can reproduce the random failure. Maybe there is something related to the environment only happened in test env.
To verify my assumption that somewhere in PaddlePaddle increases GPU usage and also fix this CI, I decreased the batch_size to see whether the random failure disappears in test env.
6 years ago
WangXi
11acbfae06
refine auto strategy, test=document_fix ( #28211 )
6 years ago
Feiyu Chan
efe6e2840c
fix strided_slice_op's GetExpectedKernelType ( #28192 )
...
* fix strided_slice_op's GetExpectedKernelType when input tensor is at CUDAPinnedPlace
* add unittest for tensors in cuda pinned place
* skip test for cuda pinned place on cpu machines
6 years ago
Leo Chen
1f3be85914
Fix bug of fetch_async_op_handle when fetching the feed variable ( #28194 )
...
* fix bug of fetch_async_op_handle
* revert some changes of test_buffer_shared_memory_reuse_pass
* revert some changes of test_buffer_shared_memory_reuse_pass
6 years ago
Aurelius84
e730516090
[Dy2stat] Refine return mechanism in @to_static ( #28116 )
...
* remove some judgement
* fix len(outputs) == 1
6 years ago
LielinJiang
68449d19a5
Update hapi predict interface ( #28180 )
...
* update hapi predict interface
* fix code style
* fix docs
* fix docs
* fix docs
* update docs
* fix codes style
* fix unittest
* fix unittest
* fix coverage
6 years ago
Chen Weihang
5d73bfdb98
fix test_weight_decay_extend error ( #28178 )
6 years ago
lilong12
4873c20d74
modify ut cmakefile ( #28140 )
...
* modify ut cmakefile, test=develop
6 years ago
swtkiwi
e8db4412d0
delete matplotlib ( #28159 )
6 years ago
cnn
7c1aa0d69d
2.0rc api rename ( #28088 )
...
* rename manual_seed to seed
* rename xxx1d-->xxx1D, xxx2d-->xxx2D, xxx3d-->xxx3D
* rename manual_seed --> seed
* do not rename .cc, .cu and .h file
* rename manual_seed --> seed
* rename manual_seed --> seed
* rename manual_seed --> seed
* rename manual_seed --> seed
* disable_static on doc example code
* donot change manual_seed on generator
* add enable_static on sample code
* convert python/paddle/fluid/layers/nn.py to bak
* fix typo
* fix code style
* fix seed to manual_seed when call functions of Generator()
* fix bug
6 years ago
liu zhengxi
bc46069225
fix dynamic decode imperative ( #28160 )
6 years ago
pangyoki
2d45d9a04f
add static_mode_white_list ( #28112 )
...
* add static_mode_white_list
* add Mac CI static list
* add Win CI white_list
* add Coverage and Py3 CI white_list, add test_unittest
6 years ago
wangguanzhong
5cd97a1cb0
support multiclass nms for multi-batch, test=develop ( #28154 )
6 years ago
李灿
085b9619f5
fix bugs test=develop ( #28125 )
6 years ago
zhulei
446d184e11
Add new api: is_tensor ( #28111 )
...
* Add new api: is_tensor
* Add new api: is_tensor
* Add new api: is_tensor
* Add new api: is_tensor
6 years ago
lilong12
cd372447b9
disable test_dist_mnist_hallreduce, test=develop ( #28129 )
6 years ago
wangguanzhong
d1e1f17482
fix generate_proposal_labels in cascade-rcnn series model, test=develop ( #27892 )
...
* fix generate_proposal_labels in cascade-rcnn series model, test=develop
* fix example code & unittest, test=develop
* update code from review comments, test=develop
6 years ago
Leo Chen
a911c19eb0
fill_constant op supports NaN and Inf ( #28109 )
...
* fill_constant supports nan and inf
* add ut
6 years ago
LielinJiang
74c8a81127
Add pil backend for vision transforms ( #28035 )
...
* add pil backend
6 years ago
Aurelius84
135b62a4ec
[Dy2stat] Refine code of DygraphToStaticAst ( #28103 )
...
* refine code of DygraphToStaticAst
* add __init__ function
6 years ago
hong
5a589b2f86
reduce imperative ocr attention config; test=develop ( #28079 )
6 years ago
zhang wenhui
af70924061
fix test_group_norm_op_v2.py, test=develop ( #28104 )
6 years ago
Double_V
d43f75e4cc
add rois_num for roi_align xpu OP ( #28077 )
...
* add stack pool2d roi_align xpu op,test=kunlun
* error message opt, test=kunlun
* add xpu unittest,test=kunlun
* skip check grad,test=kunlun
* fix boostget , test=kunlun
* error message opt for XPU, test=kunlun
* add rois_num for roi_align xpu OP, test=develop
6 years ago
hong
651dab4af6
Catch exception in download ( #28090 )
...
* cat exeception in request download; test=develop
* add re-try in download; test=develop
6 years ago
LielinJiang
8327accc58
Fix dataloader when stack input data with different type ( #27950 )
...
* fix dataloader
6 years ago
yinhaofeng
6f0c3d1f06
xpu adam op ( #28031 )
...
* lookup_table_xpu op report errors;test=kunlun
* add adam xpu op;test=kunlun
* reset lookup
* change adam wrong;test=kunlun
6 years ago
TeslaZhao
a5c95cd588
Add xpu transpose2 op.test=kunlun ( #28086 )
6 years ago
Kaipeng Deng
a5f65d516f
hapi/model step learning rate on batch end. ( #27991 )
...
* hapi/model step learning rate on batch end. test=develop
6 years ago
LutaoChu
c8d32c8c10
Fix diag OP bug on Windows Python3.8
...
Fix diag OP bug on Windows Python3.8 ,remove the std::min
6 years ago
MRXLT
55098b975e
fleet support paddle.optimzier ( #28026 )
...
fleet support paddle.optimzier
* bug fix
* fix fleet_base
* bug fix
* fix coverage
6 years ago
lilong12
5bb348a1c2
add doc for ReduceOp ( #28051 )
...
* add doc, test=document_fix
6 years ago
Zhou Wei
086b92df8f
fix optimizer init ( #27995 )
6 years ago
liuyuhui
e21b13fbf8
[API 2.0: doc] transfer from paddle.fluid.layers.assign() into creation.py ( #27999 )
...
* transfer from paddle.fluid.layers.assign() into creation.py,test=develop
* fix ut fail,add support for paddle.assign,test=develop
* fix,test=develop
* fix UT coverage,test=coverage
* fix UT fail,test=coverage
* fix doc,test=develop
6 years ago
huangxu96
d466893820
Allclose op ( #27891 )
...
* Still has bugs.
* Fixed allclose_op bug, which cannot deal with some cases of fp64 inputs.
* improved CUDA kernel performance.
* Changed CUDA code.
* Fixed a bug in cuda kernel which cannot deal with large dimension input, and added an unittest for it.
* Add a test case for float32 input.
6 years ago
pangyoki
975bd8873b
Fix error message of multinomial op ( #27946 )
...
* fix multinomial doc
* fix multinomial error message
* little doc change
* fix Categorical class doc
* optimize format of error message
* fix CPU Kernel error message format
* fix isinf and isnan error in WindowsOPENBLAS CI
* delete inf and nan
* add manual_seed in sample code
* little error message change
* change error message to InvalidArgument
* add full point for error message and add manual_seed in CPU environment
6 years ago
pangyoki
4c5b779a99
Add truncated_gaussian_random XPU kernel ( #27861 )
...
* Add truncated_gaussian_random_op XPU kernel
* Add truncated_gaussian_random_op XPU kernel, test=kunlun
* little change, test=kunlun
* change boost_get to BOOST_GET_CONST
* change boost_get to BOOST_GET_CONST, test=kunlun
* little change, test=kunlun
* use Generator to generate random number and optimize format, test=kunlun
* little change, test=kunlun
* add TODO, test=kunlun
6 years ago
pangyoki
5b8e500135
Add gaussian_random XPU kernels ( #27853 )
...
* Add gaussian_random XPU kernels
* commit kunlun, test=kunlun
* new version, test=kunlun
* change boost_get to BOOST_GET_CONST, test=kunlun
* use Generator to generate random number and optimize format, test=kunlun
* add TODO, test=kunlun
6 years ago
pangyoki
74ce039743
Add uniform_random XPU kernel ( #27846 )
...
* support uniform_random op on Baidu Kunlun
* change dtype of attr shape from int to int64_t
* kunlun ci, test=kunlun
* new version, test=kunlun
* change boost_get to BOOST_GET_CONST
* change boost_get to BOOST_GET_CONST, test=kunlun
* use Generator to generate random number and optimize format
* run Kunlun CI, test=kunlun
* add TODO, test=kunlun
6 years ago
liuyuhui
3e9568653b
add cast/concat/assign xpu op ( #27911 )
...
* addd
* add cast_op_xpu, test=kunlun
* fix bug for cast_op_xpu,test=kunlun
* add concat_op_xpu, test=kunlun
* slove conflicts, test=kunlun
* fix bug,test=kunlun
* add assign_op_xpu, test=kunlun
* fix bug,test=kunlun
* test=kunlun;test=develop
* fix concat bug,test=kunlun
* fix check_dygraph set in test_concat_op_xpu.py,test=kunlun
* fix error message,test=kunlun
Co-authored-by: mapingshuo <mps2012@yeah.net>
6 years ago
littletomatodonkey
2ed84a679d
Add API for pad op. ( #27943 )
...
* add pad apis
* rm pad2d test_layer
* fix code example
6 years ago
Aurelius84
3718b2e706
Fix test_lstm unittest failed and Add more unittest ( #28029 )
...
* fix test_lstm unittest failed
* add more unittest
* modify cmakelist
* fix judgement
6 years ago
YUNSHEN XIE
bf5325f38f
disable test_lstm,test=document_fix ( #28030 )
...
* disable test_lstm,test=document_fix
* fix some error,test=document_fix
6 years ago
WangXi
fb641c915e
【paddle.fleet】fleet add _get_applied_meta_list and _get_applied_graph_list ( #27952 )
6 years ago
Guo Sheng
fa9d3fa5bf
Incorporate cudnn_lstm into LSTM api ( #27217 )
...
* Incorporate cudnn_lstm into LSTM api.
test=develop
* Make coalesce_tensor support alignment optionally.
test=develop
* Reorganize RNN apis. test=develop
* Fix cudnn rnn layout conversion.
test=develop
* Add sequence_length support for RNN cudnn implement.
Add optional init_h and init_c gradient for cudnn_lstm_op.
test=develop
* Use create_parameter for rnn cudnn impl.
test=develop
* Move `self._flat_weight = self.create_parameter()` in RNNBase to main_program.
test=develop
* Update RNN api unittest to use set_device.
test=develop
* Fix set_place for unit tests of RNN apis.
test=develop
* Fix use_align in coalesce_tensor_op.
test=develop
* Adjust RNN apis arguments according to comments.
test=develop
* Polish documents for SimpleRNN apis.
test=develop
* Refine random seed in cudnn_lstm_op.
Expose rnn params from sublayers to RNN.
test=develop
* Fix RNN saving for jit.save.
Refine cudnn_lstm dropout behavior.
test=develop
* Fix doc of GRU. test=develop
* Use ShareDataWith to avoid copying for cudnn_lstm_op test.
test=develop
* Remove updates on cudnn_lstm temporarily.
test=develop
* Use ShareDataWith to avoid copying for cudnn_lstm_op test.
test=develop
* Refine random seed in cudnn_lstm_op.
test=develop
* Fix test_lstm by adjust ConcreteProgram buffer getter.
test=develop
* Use create_parameter instead of create_var for rnn._flat_weight for static graph usage.
test=develop
* Remove W input for cudnn_lstm to pass unused_var_check.
test=develop
* Add test_predict for RNN unit tests coverage.
test=develop
* Fix code style of rnn.
test=develop
* Fix F.rnn usage in rnn.py.
test=develop
6 years ago
Leo Chen
78b1026fa3
fix random failure ( #27996 )
6 years ago
Aurelius84
ffcc11758a
[Dy2Stat] Fix Error when generating train_program in eval mode ( #27975 )
...
* Fix save in eval mode
* remove assert statement
* fix test_partial_program failed
* add more test
* modify back into _train_program
6 years ago
chentianyu03
05fd49e974
change paddle.fluid.layers.reduce_sum to paddle.sum in sample codes ( #27998 )
...
* change paddle.fluid.layers.reduce_sum to paddle.sum in sample codes
* format codes
6 years ago
lilong12
ff0ebefc1e
put gloo initialization log to file ( #27969 )
...
* update, test=develop
6 years ago
chentianyu03
57a9c27248
change paddle.fluid.data to paddle.static.data in sample code ( #27992 )
6 years ago
Jack Zhou
d330cf66cc
Fix xpu enforce ( #27978 )
...
* test=kunlun;
Add elementwise XPU OP kernel for KUNLUN core, including (but still cannot process common broadcast):
* elementwise_div op
* elementwise_max op
* elementwise_mul op (with grad op)
* elementwise_sub op (with grad op)
* 0.05->0.01
* add xpu error message description;test=kunlun
6 years ago
lidanqing
7cb4a8b8f2
[oneDNN] Conv dilation support ( #27914 )
...
* conv dilated mkldnn support: forward and backward pass
* add mkldnn conv_transpose dilation UT
test=develop
* remove unnecessary PADDLE_ENFORCE
* add int8 and bf16 dilated conv UT
* update according to reviews
6 years ago
chentianyu03
5bcb4c7b54
Change reduce mean ( #27997 )
...
* change paddle.fluid.layers.reduce_mean to paddle.mean
* change paddle.fluid.layers.reduce_mean to paddle.mean
6 years ago
chentianyu03
4aacacb4d6
change paddle.fluid.layers.fill_constant to paddle.full in sample codes ( #27993 )
6 years ago
Guo Sheng
0133581531
Clean text.py and decode.py for API 2.0 ( #26853 )
...
* Make dynamic_decode support dygraph and expose to API 2.0
test=develop
* update info about BeamSearchDecoder and dynamic_decode
* remove all APIs in paddle.text, expose BeamSearchDecoder and dynamic_decode
* update example code
* delete test_text.py, decode.py, update some doc, fix example code float64
* delete decode import from paddle.nn
* fix unittest bugs
* use dygraph.Embedding instead of nn.Embedding, add paddle.enbale_static()
* update, correct doc
* move dynamic_decode, BeamSearchDecoder API to paddle.nn
* fix code style
* update unittest param, delete import pf text.py
* set dtype of beamsearchtest float64
* update example code of BeamSearchDecoder, dynamic_decode
Co-authored-by: LiuChiaChi <709153940@qq.com>
6 years ago
Steffy-zxf
832458d516
update code examples for paddle.sums
...
update code examples for paddle.sums
6 years ago
tangwei12
202bfab1be
Feature/large scale kv save base/delta ( #27470 )
...
* add size method for large scale
* add large scale UT
* add ut for checkpoint
6 years ago
123malin
aa3b4ed717
【paddle.fleet】geo send sparse optimize ( #27719 )
...
* test=develop, fix geo sgd communicator
* test=develop, gloo_init_method
* test=develop, bug fix for gloo http_init
6 years ago
Zhou Wei
2ac6c6c3af
fix bug of tensor copy of CUDAPinnedPlace ( #27966 )
6 years ago
Thunderbrook
f58434ef2c
fix slice doc ( #27941 )
...
* test=document_fix
* fix slice doctest=document_fix
* test=document_fix
* test=document_fix
* test=document_fix
* test=document_fix
6 years ago
mapingshuo
5ccaaab8aa
reshape support bool, test=develop ( #27944 )
6 years ago
danleifeng
8d7908f3fd
【paddle.fleet】raise error when using multi-cards in fleet non_distributed mode ( #27854 )
...
* raise error if use multi-cards in fleet non_distributed mode; test=develop
6 years ago
Qinghe JING
4a4f773658
Add reduce sum and reduce mean xpu op ( #27939 )
...
* add reduce xpu op test=develop;test=kunlun
* add reduce xpu op test=develop;test=kunlun
* add reduce xpu op test=develop;test=kunlun
* add reduce xpu op test=develop;test=kunlun
* add reduce xpu op test=develop;test=kunlun
6 years ago
Zhou Wei
bf412f4665
add tensor clone ( #27953 )
...
* add tensor clone
* fix unittest test_var_base
6 years ago
Feiyu Chan
2e845182d9
support channel last in BatchNorm*d
...
1. support channel last in BatchNorm*d (#27875 )
2. fix a bug in batch_norm_op cuda kernel by extracting ResizeToChannelFist(Last), TransToChannelFirst(Last) to operators/layer_utils.h
6 years ago
Yiqun Liu
947b75284f
Reimplement paddle.utils.install_check. ( #27771 )
6 years ago
Kaipeng Deng
b808979b8c
step lr_scheduler on epoch end in hapi/model.py fit ( #27730 )
...
* step lr_scheduler on epoch end in hapi/model.py fit. test=develop
6 years ago
Kaipeng Deng
d17681dcc7
fix DataLoader single process mode exit SIGABRT error. ( #27850 )
...
* fix DataLoader single process mode exit SIGABRT error. test=develop
6 years ago
tianshuo78520a
7750844f33
fix norm code format error ( #27955 )
6 years ago
furnace
d998ed0ce3
bugfix for docs of paddle.nn.Assign API ( #27927 )
6 years ago
ceci3
338c76564a
update syncbn docs, test=document_fix ( #27948 )
6 years ago
guofei
6bbb6e7f45
Implement the function of OutScaleForTraining/OutScaleForInference in dygraph ( #26601 )
...
* Implement the function of OueScaleForTraining/OutScaleForInference in dygraph
test=develop
6 years ago
LielinJiang
0140d74e23
Fix load pretrained model in hapi ( #27893 )
...
* fix hapi load
6 years ago
chentianyu03
d05058d268
Remove and reorganize the alias of APIs ( #27717 )
...
* modify cond while_loop to paddle.static.nn.cond
* modify crop_tensor to paddle.crop
* modify Variable to paddle.static.Variable
* remove nn.beam_search, nn.beam_search_decode, nn.gather_tree
* remove bpr_loss, center_loss, rank_loss, smooth_l1, teacher_student_sigmoid_loss, edit_distance, sampled_softmax_with_cross_entropy in nn.functional
* remove apis in nn.functional.learn_rate.py
* remove pool2d, pool3d, adaptive_pool2d, adaptive_pool3d in nn.functional
* remove apis in nn.functional.vision
* remove erf, soft_relu in nn.functional.activation
* remove apis in nn.functional.extension
* remove nn.functional.rnn
* remove hash from nn.functional.lod
* remove row_conv from nn.functional.extension
* remove one_hot, pad2d, pad_constant_like from nn.functional.common
* remove nn.gather_tree, nn.BilinearTensorProduct, nn.Pool2D, nn.Pad2D
* remove apis from optimizer.__init
* remove tensor.creation.fill_constant
* remove elementwise_mul in nn.functional.common and modify to paddle.multiply
* remove tensor.stat.reduce_mean
* remove reduce_all, reduce_any in tensor.logic
* remove apis in tensor.math
* remove apis in tensor.__init__
* remove has_inf, has_nan in tensor.search
* remove apis in framework.__init__
* remove apis in paddle.__init__
* remove apis in nn.functional.__init__
* modify removed alias apis to raw api in doc and unittests
* fix remove grid_sample bug
* modify removed alias apis to raw api in doc and unittests
* modify removed alias apis to raw api in doc and unittests
* modify removed alias apis to raw api in doc and unittests
* modify removed alias apis to raw api in doc and unittests
* modify removed alias apis to raw api in doc and unittests
* modify removed alias apis to raw api in doc and unittests
* delete alias api relastions in doc
* reserve paddle.compat, paddle.sysconfig
* remove unittest for paddle.reduce_all, paddle.reduce_any
* modify removed alias apis to raw api in doc and unittests
* recover paddle.save and paddle.load
* resolve conflicts
* fix sample code missing paddle.enable_static() bug
* fix sample code missing paddle.enable_static() bug
* fix to_string sample code error
6 years ago
pangyoki
6e5034e248
fix test directory migration ( #27885 )
...
* fix test directory migration
* change assert to self.assertXXX
6 years ago
Leo Chen
9a2a4b5f65
Support setting xpu place in dygraph mode ( #27909 )
...
* support setting xpu place
* add ut, test=kunlun
6 years ago
chajchaj
357341381c
del the DEFINE_ALIAS of sigmoid_cross_entropy_with_logits ( #27883 )
...
* del the DEFINE_ALIAS of sigmoid_cross_entropy_with_logits
* del sigmoid_cross_entropy_with_logits in python/paddle/nn/functional/loss.py, test=develop
* call paddle.fluid.layers.sigmoid_cross_entropy_with_logits in bce_with_logits_loss, test=develop
6 years ago
MRXLT
263a9e97fd
Fix adam ( #27778 )
...
* fix adam
* fix gpu adam
* fix code style
* fix ut
* update ut add cuda code
6 years ago
Double_V
b0edda4d99
kunlun add op ( #27890 )
...
* add stack pool2d roi_align xpu op,test=kunlun
* error message opt, test=kunlun
* add xpu unittest,test=kunlun
* skip check grad,test=kunlun
* fix boostget , test=kunlun
6 years ago
zhang wenhui
82eb486edd
fix test_group_norm, test=develop ( #27929 )
6 years ago
qingqing01
766b351527
Remove paddle.metric.auc in 2.0 API ( #27851 )
6 years ago
wawltor
ff8922f9f2
fix the dataset remove bug for the dataset
...
fix the dataset remove bug for the dataset
6 years ago
Jack Zhou
c791df09cf
Add elementwise XPU OP kernel for KUNLUN core, including (but still cannot process common broadcast
...
Add elementwise XPU OP kernel for KUNLUN core, including (but still cannot process common broadcast
6 years ago
Leo Chen
ae6ad23c3c
Refine tensor to_string ( #27925 )
...
* refine to_string
* re-enable ut
6 years ago
ruri
8b307042ba
[API2.0]remove image_resize series api in Paddle2.0 ( #27886 )
...
* remove image_resize series api in Paddle2.0
6 years ago
wangchaochaohu
c5fcc96d5b
xpu support for fill_constant Op ( #27675 )
6 years ago
liuyuhui
72efd830b9
[API 2.0: doc] fix doc of linspace cast assign addcmul ( #27897 )
...
* update assign/cast/linspace/addcmul op doc for 2.0 api,test=document_fix
* fix bug about cast doc for 2.0 api,test=document_fix
6 years ago
zhulei
b3cfb02150
Update example codes of ConstantInitializer & MSRAInitializer ( #27915 )
...
* Add api of constant in paddle.nn.initializer
* Add api of constant in paddle.nn.initializer
* Add api of constant in paddle.nn.initializer
* Add api of constant in paddle.nn.initializer
* Add api of constant in paddle.nn.initializer
* Add api of constant in paddle.nn.initializer
* Add api of constant in paddle.nn.initializer
* Add api of KaimingUniform & KaimingNormal in paddle.nn.initializer
* Add api of KaimingUniform & KaimingNormal in paddle.nn.initializer
* Add api of KaimingUniform & KaimingNormal in paddle.nn.initializer
* Add api of KaimingUniform & KaimingNormal in paddle.nn.initializer
* Add api of KaimingUniform & KaimingNormal in paddle.nn.initializer
* Add api of KaimingUniform & KaimingNormal in paddle.nn.initializer
* test=document_fix
* test=document_fix
6 years ago
Chengmo
328cb289ed
【paddle.fleet】fix sparse load ( #27680 )
...
* add sparse tensor load method
6 years ago
furnace
8e70b18e6c
add paddle.nn.initializer API, including: Normal, TruncatedNormal, Uniform, XavierNormal, XavierUniform, Assign ( #27769 )
6 years ago
123malin
a4f850748a
【paddle.fleet】bug fix for parameter_recv ( #27838 )
...
* test=develop, bug fix for parameter_recv
* test=develop, for unittest, test_fleet_rolemaker_new
6 years ago
MRXLT
b19b01af18
add dygraph code for unstack ( #27881 )
6 years ago
QingshuChen
2712d07644
support kunlun matmul_v2 ( #27910 )
...
*test=kunlun
6 years ago
zhang wenhui
5a83496c8d
Multi task ( #26002 )
...
* add multitask
* add multitask, test=develop
* fix code style, test=develop
* add partail push dense, test=develop
* fix has_kay in py3, test=develop
* fix, test=develop
* fix, test=develop
* fix, test=develop
6 years ago
zhang wenhui
7a58431c0a
fix norm api doc, test=develop ( #27652 )
...
* fix norm api doc, test=develop
* fix error message, test=develop
* fix api norm, test=develop
* add adagrad, test=develop
* fix bug, test=develop
* fix bug, test=develop
* add spetral_norm, test=develop
* fix adagrad, test=develop
* merge , test=develop
6 years ago
yinhaofeng
3eb106da6d
Lookup table v2 xpu ( #27888 )
...
* add lookup_table_v2_op_xpu, test=kunlun
* add lookup_table_v2_op_xpu, test=kunlun
* change some Tips ,test=kunlun
6 years ago
pangyoki
6150cc86e3
fix Error of gpu version paddle when CUDA device is not set properly ( #27819 )
...
* fix gpu version paddle Error when have no CUDA device
* optimize format and add new unittest
* fix coverage problem
* fix unittest format
* change static mode to dygraph mode
* use subprocess in unittest
6 years ago
AshburnLee
9209f341fc
Made a change in python API to support the GPU version of unique OP working in static graph ( #27899 )
...
* Made a change to support unique op working in static graph
* Correct python format error
6 years ago
Yiqun Liu
b301adc98b
Update all the examples which use paddle.static.nn.fc. ( #27904 )
6 years ago
Chen Weihang
ed31dac6eb
remove scale loss and coll grads, test=document_fix ( #27874 )
6 years ago
YUNSHEN XIE
6898746f1d
disable ut ( #27913 )
6 years ago
zhulei
62556d5e74
Add api of KaimingUniform & KaimingNormal in paddle.nn.initializer ( #27811 )
...
Add api of KaimingUniform & KaimingNormal in paddle.nn.initializer
6 years ago
hutuxian
3f2a6ab65d
fix error msg ( #27887 )
6 years ago
Huihuang Zheng
426de255ea
Refine Executor API English Doc for 2.0rc ( #27857 )
...
As the title
6 years ago
Huihuang Zheng
9b3b3b74a7
Refine ParallelExecutor English Doc for 2.0RC ( #27862 )
...
As the title
6 years ago
xiaoting
ae01801f0a
Add dropout and log_loss for kunlun ( #27790 )
...
* add dropout,log_loss, test=kunlun
* fix dropout, test=kunlun
* polish error message, test=kunlun
* change boost::get to BOOST_GET_CONST, test=kunlun
* fix copyright, test=kunlun
6 years ago
WangXi
50619cd842
use floyd algorithm to find meta optimizer max path, test=develop ( #27867 )
6 years ago
Guanghua Yu
70c8c31371
support mean,softmax_with_cross_entropy on Baidu Kunlun ( #27792 )
...
* support mean,softmax_with_cross_entropy on Baidu Kunlun,test=kunlun
* fix unittests error,test=kunlun
* delete boost::get,test=kunlun
6 years ago
Chengmo
1607e87cb9
add xpu sgd & momentum ( #27728 )
...
* add xpu sgd & momentum
6 years ago
smallv0221
1b48f2f751
Fix en doc for rnn.py. test=document_fix ( #27835 )
...
* Fix en doc for rnn.py. test=document_fix
6 years ago
Leo Chen
049696bf67
Refine the format of printing tensor ( #27673 )
...
* add sumary feature
* refine printting tensor
* add sci_mode
* add sample code
* fix indent error
* fix _format_item
* polish code
* support item indent
* add ut
* set place for ut
* fix py2 issue
* fix ut
6 years ago
hong19860320
c90d35564b
Add batch_norm and layer_norm XPU kernels ( #27818 )
6 years ago
xiaoting
6da7a7458b
add conv for xpu, test=kunlun ( #27809 )
...
* add conv for xpu, test=kunlun
* polish error_message, test=kunlun
* polish error_message, test=kunlun
* fix copyrigth, test=kunlun
6 years ago
huangjun12
74092635f8
Add local_response_norm in nn.functional and nn.layer ( #27725 )
...
* add local_response_norm in nn.functional and nn.layer, test=develop
* update layers to functional api, test=develop
* fix ci coverage, test=develop
* fix unittests bug, test=develop
6 years ago
Bai Yifan
1b1217732e
fix deform_conv2d doc, test=document_fix ( #27873 )
6 years ago
Huihuang Zheng
914558049f
Refine ProgramTranslator API English Doc for 2.0rc ( #27849 )
...
As the title
6 years ago
Thunderbrook
04be37c57f
add xpu slice op ( #27349 )
...
* add xpu slice op
test=xpu
* add slice xpu op
test=xpu
* code style
test=kunlun
* style
test=kunlun
* format
test=kunlun
6 years ago
mapingshuo
8d2cb14f98
support gradient merge with recompute, test=develop ( #27834 )
...
* support gradient merge with recompute, test=develop
test=develop
6 years ago
QingshuChen
79b5db135e
bug: fix mul unitest bug ( #27852 )
...
*test=kunlun
6 years ago
wanghuancoder
92708a2723
modify test_load_op save path from /tmp to ./ ( #27872 )
...
* modify test_load_op save path from /tmp to ./, test=develop
* trigger kunlun ci, test=kunlun
* trigger kunlun ci, test=kunlun
6 years ago
Chengmo
9637d963f7
update index sample ( #27839 )
...
* update index sample
6 years ago
ShenLiang
6d63cd2b93
add gather_op xpu, test=kunlun ( #27822 )
...
* add gather_op xpu, test=develop, test=kunlun
* fix ut, test=develop, test=kunlun
* fix the ut,test=develop, test=kunlun
6 years ago
wangxinxin08
e6a4d1705a
modify dtype in doublegrad matmul ut ( #27868 )
6 years ago
Chen Weihang
94faa112e9
Polish save load en doc details ( #27845 )
...
* polish save load en doc details, test=document_fix
* polish details, test=document_fix
* remove blank, test=document_fix
* fix ascii error, test=document_fix
* update fc's input to x, test=document_fix
* update fc argument activation, test=document_fix
6 years ago
Steffy-zxf
92b3a71705
Update api 2.0 for some ops
...
* 1. remove paddle.unique_with_counts api, which counts as unique api
2. add paddle.math.increment(x, value=1.0, name=None) api
3. replace paddle.sums with paddle.add_n api
4. update paddle.metric.accuracy api (add name parameter)
6 years ago
Zhou Wei
e122e16456
fix english doc, unittest, and remove useless alias of 2.0 lr_scheduler ( #27686 )
...
* fix doc and unittest of 2.0 lr_scheduler
* fix doc of 2.0 lr_scheduler
* fix unittest
* fix english doc of lr_scheduler
* fix api name of lr scheduler
* fix api name of lr scheduler
6 years ago
Steffy-zxf
9215ad96ca
Update code examples for api2.0
...
Update code examples for api2.0
6 years ago
Peihan
af57537ec7
remove dy2static test_lac predictor run case ( #27844 )
...
* remove test_lac predictor run case
6 years ago
Chengmo
c5f2802d56
【paddle.fleet】Update fleetrun & ps-heter ( #27472 )
...
* refine fleetrun.ps_launch
* update fleet run for multi device support
* ps_graph support ps-gpu
* fix heter save
* add heter save unittest
* fix unittest & simple code
* update fleetrun
* fix fleetrun
* fix launch barrier
* fix role maker
* add paddlecloud rolemaker unittest
* rename heter_worker_device_guard
6 years ago
Kaipeng Deng
445634fa8b
polish Return doc of DataLoader ( #27808 )
...
* polish Return doc of DataLoader. test=develop
6 years ago
Bai Yifan
6cdf2c9604
mig deformable_conv to deform_conv2d ( #27841 )
...
* mig deformable_conv to deform_conv2d
6 years ago
Huihuang Zheng
e388e60312
Refine cond API English Doc for 2.0RC ( #27708 )
...
As the title
6 years ago
guofei
2e1bca99ca
Refine the gradient calculation errors caused by renaming in while_grad ( #27814 )
...
test=develop
6 years ago
wanghuancoder
8fa4c09889
add load_op_xpu for Baidu Kunlun ( #27817 )
...
* add load_op_xpu for Baidu Kunlun, test=kunlun
* add is_compiled_with_xpu for unit test, test=kunlun
* add is_compiled_with_xpu for unit test, test=kunlun
6 years ago
MRXLT
84d8e49de8
refine adam/strided_slice && fix doc for rmsprop/unstack ( #27740 )
...
* refine parameters order && doc
* update rmsprop doc
* refine adam/transpose/unstack/stride_slice
* fix bug && doc
* fix doc
* bug fix
* bug fix
* fix doc
* fix doc
* fix doc
* fix doc
* depercate old strided_slice
* update doc
* set default value for name
* update doc
6 years ago
tangwei12
e96fc6abb2
Fix/embedding doc ( #27816 )
...
* fix fluid doc
* fix fluid doc
* fix fluid doc, test=document_fix
* fix fluid doc, test=document_fix
6 years ago
joejiong
2bcb7c0a2f
Mutiply allows non-tensor data input ( #27690 )
...
Mutiply allows non-tensor data input
6 years ago
Jacek Czaja
55e63763ec
[oneDNN] adaptive pool support ( #27747 )
6 years ago
chen zhiyu
6335e6a0a6
add musl option ( #27798 )
6 years ago
GaoWei8
36bb056ed6
Add flattern weight of lstm ( #27192 )
...
* add flattern weight of lstm
6 years ago
zhupengyang
659d04df2c
hsigmoid -> hsigmoid_loss/HSigmoidLoss; refine docs ( #27745 )
6 years ago
LiuChiachi
b84d4ae31c
Fix bug of Model.save ( #27815 )
...
* fix model bugs, inputs can be InputSpec instance
* correct error message
6 years ago
hong19860320
f3e2580cf0
Fix the param of swish ( #27824 )
6 years ago
TeslaZhao
070ac9590c
Add double grad in Squeeze and Unsqueeze ( #27810 )
...
* Add double grad in Squeeze and Unsqueeze
* Add double grad in Squeeze and Unsqueeze
6 years ago
Jack Zhou
d4359b0f39
add the kunlun kernel for the paddle 2.0
...
Add xpu kernel for KUNLUN core:
* accuracy op
* sign op
* scale op
* sum op
Add default atol in xpu unittest.
6 years ago
LielinJiang
4676f03cbb
fix summary ( #27820 )
6 years ago
mapingshuo
840d54de9b
add XPU support for shape op and reshape op ( #27804 )
6 years ago
WangXi
0a1862d1d2
fleet combine amp dgc recompute meta optimizer ( #27643 )
6 years ago
cc
8fabb1c32f
Add test attribute in channelwise_quant op, test=develop ( #27742 )
...
* Add test attribute in channelwise_quant op, test=develop
6 years ago
tianshuo78520a
81d3992c47
Fix docker build error ( #27735 )
6 years ago
Chen Weihang
9b49f02441
Polish jit.save/load design & remove paddle.SaveLoadConfig ( #27623 )
...
* replace config by kwargs
* change save path form dir to prefix
* fix failed unittests
* revert unittest name change
* polish en docs
* add more tests for coverage
6 years ago
hong19860320
74d3a55072
Add Swish and ThresholdedReLU for API 2.0 ( #27758 )
6 years ago
wangxinxin08
ad99e638fd
add double grad op for matmul ( #27776 )
...
* add matmul doublegrad op
* fix compile errors
* modify code according to review
* delete float16
6 years ago
Wilber
c425cf1822
[API 2.0]Update 2.0 api from fluid to paddle ( #27802 )
6 years ago
Yiqun Liu
bf187c7577
Polish the documentation and examples of paddle.static.nn.fc. ( #27768 )
...
* Reimplement paddle.static.nn.fc, mainly change the parameters and English documentation.
* Polish the documentation format.
6 years ago
zhupengyang
0025e0d87b
refine APIs: brelu, hardsigmoid, hardswish, maxout ( #27658 )
6 years ago
zhupengyang
5098891fdf
add softmax xpu kernel ( #27700 )
6 years ago
Leo Chen
65c06141b6
disable_fuse_all_reduce ( #27746 )
...
* disable_fuse_all_reduce
* fix test
* fix ut
6 years ago
Double_V
f6ad2375be
fix pool3d bug, test=develop ( #27718 )
...
* fix pool3d bug, test=develop
* fix unitest, test=develop
* fix test and fix pool2d bug, test=develop
6 years ago
石晓伟
0d27591642
save operator version infomation to program desc, test=develop ( #27668 )
6 years ago
zhulei
00d401ec1a
Add api of constant in paddle.nn.initializer ( #27786 )
...
* Add api of constant in paddle.nn.initializer
* Add api of constant in paddle.nn.initializer
* Add api of constant in paddle.nn.initializer
* Add api of constant in paddle.nn.initializer
* Add api of constant in paddle.nn.initializer
* Add api of constant in paddle.nn.initializer
* Add api of constant in paddle.nn.initializer
6 years ago
Li Fuchen
c4b1faa469
modified sample code of add_position_encoding to use paddle.randn, test=document_fix ( #27679 )
6 years ago
LielinJiang
d3b98f0d84
Fix dynamic parallel train mode for hapi ( #27787 )
...
* fix dynamic parallel for hapi
* fix code style
6 years ago
LutaoChu
b53970ee36
Fix cross, cumsum op docs test=document_fix
...
Fix cross, cumsum op docs
6 years ago
Feiyu Chan
c52b6bbfa9
add alias for RNN APIs from paddle.nn.layer.rnn explicitly ( #27784 )
6 years ago
Yiqun Liu
836ee3b0c8
Polish the english documentation and example of paddle.nn.Linear and paddle.nn.functional.linear ( #27759 )
6 years ago
liu zhengxi
061240b34a
remove beam_search and beam_search_decode api in paddle.nn ( #27660 )
6 years ago
zhupengyang
395cb561aa
refine logsumexp error message and docs ( #27713 )
6 years ago
Jacek Czaja
606611d351
[oneDNN] GRU BF16 kernel ( #27731 )
6 years ago
gongweibao
baddedfdf1
fix ut test=develop ( #27760 )
6 years ago
zhulei
6da552a22f
Update initializer examples of Bilinear ( #27709 )
6 years ago
FlyingQianMM
7ecbc465c1
reimplement paddle.nn.functional.sigmoid_focal_loss ( #27748 )
...
* reimplement paddle.nn.functional.sigmoid_focal_loss. test=develop
* fix reduction error message. test=develop
* fix exp. test=develop
* reset the shape of logit. test=develop
* delete disable_static in example. test=develop
6 years ago
Qi Li
994438b109
change clip grad api, test=develop ( #27767 )
6 years ago
LielinJiang
d84eb9b33f
keep network mode unchange when use summary api ( #27754 )
...
* keep summary mode unchange
* add no grad decorator
6 years ago
LielinJiang
b9c7c66ea5
add type promotion ( #27756 )
6 years ago
LielinJiang
9089841b6e
Fix bilateral inference shape bug ( #26822 )
...
* fix bilateral bug
6 years ago
wanghuancoder
6076d0a5df
modify doc for bilinear_tensor_product, test=develop ( #27613 )
6 years ago
Chen Weihang
bcc34724c2
polish api code & example ( #27696 )
6 years ago
wanghuancoder
c826bcb2ec
modify doc for ParameterList and LayerList ( #27609 )
...
* modify doc for ParameterList and LayerList, test=develop
* add empty line after code-block, test=develop
6 years ago
wanghuancoder
aaa3ee65e4
modify doc for unique_name.guard unique_name.generate unique_name.switch, test=develop ( #27605 )
6 years ago
wanghuancoder
7ca66f1e06
modify Sequential doc, test=develop ( #27608 )
6 years ago
wanghuancoder
7698e19928
modify doc for paddle.nn.Layer ( #27624 )
...
* modify doc for Layer, test=develop
* modify doc for Layer2, test=develop
* set dtype default value to float32, test=develop
* add example code for paddle.nn.Layer, test=develop
* set create_parameter and create_variable dtype default value to None, test=develop
* modify some example code, tet=develop
* refine, test=develop
* del no ues code, test=develop
* modify doc, example code, args, test=develop
* modify doc, test=develop
6 years ago
huangjun12
7793fd2877
add huber_loss to fix ci, test=develop ( #27766 )
6 years ago
huangjun12
de60c54938
fix doc and example code of huber_loss and npair_loss ( #27678 )
...
* fix huber_loss ans npair_loss doc and example code, test=document_fix
* remove disable_static in example code, test=document_fix
* remove huber_loss and refine npair_loss example code, test=document_fix
* remove huber_loss in functional/__init__.py, test=document_fix
6 years ago
Huihuang Zheng
9f3fb95b34
[Dy2stat] Add Simnet Test for V2 APIs ( #27460 )
...
Add Simnet Test for V2 APIs.
We used tool from https://www.paddlepaddle.org.cn/documentation/docs/zh/2.0-beta/guides/migration_cn.html#paddle1-xpaddle2-0beta to do v1.x to v2 transformation.
This PR pulled changes from #27430 , please DO NOT merge before #27430 is merged
6 years ago
joanna.wozna.intel
a90711c7a2
Add avx512 core instructions check 2 ( #27750 )
...
* Add test skip from cmake
* Remove print
6 years ago
Wojciech Uss
966447e338
Added support for quantization of fusion_gru ( #27518 )
6 years ago
joanna.wozna.intel
0cd4907eba
Add avx512 core instructions check ( #27732 )
...
* Add avx instructions check
* Small fix
* Change function name
* Change uint to unsigned int
6 years ago
ysh329
9cd86487cc
Fix api for ErrorClipByValue, code demo of clip_by_norm. test=develop ( #27654 )
...
* Fix ErrorClipByValue api and demo code of clip_by_value. test=develop
Co-authored-by: tianshuo78520a <707759223@qq.com>
6 years ago
123malin
54c368db1e
[API 2.0: doc] fix doc of nonzero ( #27685 )
...
* test=develop, update example
6 years ago
Leo Chen
69a3339aaa
Move dygraph amp api to paddle-2.0 ( #27681 )
...
* move dygraph amp api to paddle
* refine code and add unit test
6 years ago
LielinJiang
a0f1dba37f
Add visualdl callback function ( #27565 )
...
* add visualdl callback
6 years ago
pangyoki
9b3ef5979d
add categorical class ( #27695 )
...
* add multinomial cpu kernel
* fix C++ notype error
* fix windows ci array len error
* let array len be const
* change array to vector
* add cuda kernrl with num_distribution is 1, and not support replacement=False
* add multinomial python api
* support num_distribution different multinomial distributions
* add categorical class
* fix test_distribution enable_static error
* add unittest for different setting of Categorical
* optimize format
* little change
* little change
* add raise error if shape not match, optimize format
* fix windows CI dtype error in concat
* little changes
* little changes2
* change values type to int64
* change values type to int64
* change values type to int64
6 years ago
xiemoyuan
4d3eefbb95
Modify the docs for Transformer's APIs. test=document_fix ( #27729 )
6 years ago
Huihuang Zheng
ab85a8910d
[Dy2stat] Add Resnet Test for V2 APIs ( #27459 )
...
* Add test_resnet_v2.py test=develop
6 years ago
Wilber
488152a6d0
[API 2.0]Update 2.0 api from fluid to paddle. ( #27598 )
6 years ago
LielinJiang
7f9b198d59
Romove grid_sampler and refine example code ( #27649 )
...
* refine grid_sample and temporal_shift
6 years ago
danleifeng
a01bc6b31d
【paddle.fleet】fleet support non_distributed training in dygraph mode ( #27714 )
...
* fleet support non_distributed training in dygraph mode; test=develop
6 years ago
yaoxuefeng
e496640bf4
fix bmm enforce equal batch ( #27694 )
6 years ago
lilong12
742cbe6660
[bug fix] avoiding multiple initialization of gloo for fleet in dygraph mode ( #27706 )
...
* add double grad for expand, test=develop
6 years ago
hutuxian
a12071ab8a
add type check for initializer and regularizer in ParamAttr ( #27720 )
6 years ago
Qi Li
f373269df0
update histogram op for performance optimization, test=develop ( #24912 )
6 years ago
tianshuo78520a
4d5ddbf106
add xpu test ( #27622 )
...
* add xpu test
* notest;add kunlun_test
* notest;add kunlun_test
* notest;test=kunlun
* notest;test=kunlun
* notest;test=kunlun
* notest;test=kunlun
* test=kunlun
6 years ago
LiuChiachi
d15cbe70b2
Remove Input requirement in dygraph for Model ( #27557 )
...
* remove input requirment in dygraph Model
* correct unittest
* upadte save inference model in dygraph without input
* fix unittets for test_model.py
* solve conflicts
* solve conflicts
* delete http.log
* fix test_model.py bug, correct initialization of MyModel
* fix unittests bugs
* set paddle manual seed for unittest
* fix Model bugs, because inputs can be list or dict when it is provided.
* add random seed for test_export_deploy_model
* delete redundant codes, because calls
* Code optimization, error information optimization
6 years ago
liym27
3a8bef1d41
[Dynamic-to-Static] Refine 2.0rc assign: paddle.nn.functional.assign ( #27650 )
6 years ago
lijianshe02
295e87e428
fix dice_loss, log_loss doc and example code test=document_fix ( #27702 )
...
* update 2.0 API for dice_loss and log_loss test=document_fix
6 years ago
Peihan
8d68dd4785
Fix test_se_resnet unittest ( #27715 )
...
* fix test_se_resnet unittest
* fix test_se_resnet unittest
* add comments for decresing test_se_resnet precision
6 years ago
Qi Li
4d79304c09
update samples of print and clip api, test=develop ( #27670 )
6 years ago
ShenLiang
e262cb6293
fix the scatternd/scatterndadd ( #27634 )
...
* fix the scatternd/scatterndadd
* fix the doc of scatter
* replace rank with ndim
6 years ago
Huihuang Zheng
28f83f0519
[Dy2stat] Add Ptb Lm Test for V2 APIs ( #27461 )
...
As the title
6 years ago
Bai Yifan
b77d9f268e
migrate code example and doc ( #27627 )
...
* migrate code example and doc
6 years ago
pangyoki
7cd2c13f1b
add multinomial op ( #27219 )
...
* add multinomial cpu kernel
* fix C++ notype error
* fix windows ci array len error
* let array len be const
* change array to vector
* add cuda kernrl with num_distribution is 1, and not support replacement=False
* add multinomial python api
* support num_distribution different multinomial distributions
* add multinomial python api unittest
* change output dtype to int64
* fix coverage prob
* optimize format
* fix dtype of output error, should be int64_t
6 years ago
iducn
7c69e36131
add pip new requirements to windows ( #27697 )
...
* add pip new requirements to windows
* Increase the conditions that restrict system installation
6 years ago
Chen Weihang
53803202cc
add rename var in block ( #27705 )
6 years ago
yaoxuefeng
719309a80f
add note of large offset of trace test=document_fix ( #27693 )
6 years ago
yaoxuefeng
cefb49ab44
fix docs ( #27637 )
6 years ago
pangyoki
90eb5541d8
fix the precision problem of test_distribution ( #27524 )
...
* increase tolerance
* increase the difference between low and high
* change tolerance of Normal log_prob method
* change probs tolerance to 1e-4
* change tolerance of Normal kl method
6 years ago
ceci3
29d5937aaa
fix batch_norm doublegrad, test=develop ( #27703 )
6 years ago
Wojciech Uss
42d175385d
Add support for (de/re)quantization with shift ( #27481 )
6 years ago
littletomatodonkey
8da2b16d1a
fix reg ( #27647 )
...
* fix reg
* fix code example and doc
* remove disable_static
* fix doc
* fix l2decay
6 years ago
123malin
cc780b1977
test=develop, optimize geo communicator ( #26857 )
...
* test=develop, optimize geo communicator
6 years ago
lilong12
5132f5129d
terminate http server used by gloo for fleet after init ( #27698 )
6 years ago
Pei Yang
8a4f85feb9
Add unittests and OP version registry for quant_conv2d_dequant_fuse_pass ( #27689 )
6 years ago
Chen Weihang
dec53a9c79
Remove DataParallel.scale_loss & apply_collective_grads ( #27603 )
...
* remove data parallel scale loss & apply collective_grads
* move apply in minimize
* fix failed unittests
6 years ago
yukavio
7b46fb0f14
fix generate_proposals and affine grid error info ( #27636 )
6 years ago
yaoxuefeng
6d9ae66096
delete ExponentialMovingAverage in paddle/optimizer ( #27683 )
6 years ago
Chen Weihang
199da9689c
Polish api Program/CompiledProgram/ParallelEnv doc & code example ( #27656 )
...
* polish Program api doc & example
* polish CompiledProgram api doc & example
* polish ParallelEnv api doc & examples
* polish details, test=document_fix
* polish program doc details, test=document_fix
* polish details, test=document_fix
* fix note format error, test=document_fix
* add lost example, test=document_fix
* fix lost example, test=document_fix
6 years ago
Chen Weihang
b14ecb8632
Polish api BuildStrategy/ExecutionStrategy doc & code example ( #27662 )
...
* polish BuildStrategy api doc & example
* polish ExecutionStrategy api doc & example
* polish details
6 years ago
Huihuang Zheng
cc2fc93804
[Dy2stat] Refine Dy2stat APIs to 2.0rc ( #27430 )
...
Refine Dy2stat APIs to 2.0rc
After discussion, we accepted 3 key points from reviewers:
1. In 2.0rc we changed dygraph_to_static folder to dy2static
2. Keep the three files: convert_call_func.py, convert_operators.py, variable_trans_func.py
3. Remove convert_operators path when users import convert_xxx.
After this PR, users can import convert_xxx APIs by:
`import paddle.jit.dy2static.convert_xxx`
The file structure will be:
```
jit
dy2static
convert_operators.py
convert_func_call.py
variable_trans_func.py
```
Detail changed API in files:
In python/paddle/jit/dygraph_to_static/convert_call_func.py:
from ...fluid.dygraph.dygraph_to_static.convert_call_func import convert_call #DEFINE_ALIAS
In python/paddle/jit/dygraph_to_static/convert_operators.py:
from ...fluid.dygraph.dygraph_to_static.convert_operators import cast_bool_if_necessary #DEFINE_ALIAS
from ...fluid.dygraph.dygraph_to_static.convert_operators import convert_assert #DEFINE_ALIAS
from ...fluid.dygraph.dygraph_to_static.convert_operators import convert_ifelse #DEFINE_ALIAS
from ...fluid.dygraph.dygraph_to_static.convert_operators import convert_len #DEFINE_ALIAS
from ...fluid.dygraph.dygraph_to_static.convert_operators import convert_logical_and #DEFINE_ALIAS
from ...fluid.dygraph.dygraph_to_static.convert_operators import convert_logical_not #DEFINE_ALIAS
from ...fluid.dygraph.dygraph_to_static.convert_operators import convert_logical_or #DEFINE_ALIAS
from ...fluid.dygraph.dygraph_to_static.convert_operators import convert_print #DEFINE_ALIAS
from ...fluid.dygraph.dygraph_to_static.convert_operators import convert_var_dtype #DEFINE_ALIAS
from ...fluid.dygraph.dygraph_to_static.convert_operators import convert_var_shape #DEFINE_ALIAS
from ...fluid.dygraph.dygraph_to_static.convert_operators import convert_while_loop #DEFINE_ALIAS
In python/paddle/jit/dygraph_to_static/variable_trans_func.py:
from ...fluid.dygraph.dygraph_to_static.variable_trans_func import create_fill_constant_node #DEFINE_ALIAS
from ...fluid.dygraph.dygraph_to_static.variable_trans_func import create_static_variable_gast_node #DEFINE_ALIAS
from ...fluid.dygraph.dygraph_to_static.variable_trans_func import data_layer_not_check #DEFINE_ALIAS
from ...fluid.dygraph.dygraph_to_static.variable_trans_func import to_static_variable #DEFINE_ALIAS
from ...fluid.dygraph.dygraph_to_static.variable_trans_func import to_static_variable_gast_node #DEFINE_ALIAS
6 years ago
MRXLT
3baf561a90
reduce epoch ( #27661 )
6 years ago
Shang Zhizhou
6363a3362b
add paddle.enable_static() && random.seed(xx) to test_activation_op ( #27585 )
...
* add paddle.enable_static() to some testcase
* add seed to random in test_activation_op
* update a randomseed
* update a randomseed
6 years ago
Zhou Wei
6871e57b30
fix in_dynamic_mode of paddle,test=document_fix ( #27671 )
6 years ago
Huihuang Zheng
abb32bbccd
[Dy2stat] Fix lstm bug ( #27631 )
...
This PR fixed two bugs when converting LSTM in dy2stat:
is_unsupported has a condition can trigger Python syntax error
LSTM API's implementation in _rnn_static_graph doesn't include parameter initialization, which can cause dy2stat error.
6 years ago
furnace
b7b1ae865e
update mv op docs ( #27559 )
6 years ago
lilong12
bbc2add703
Initialize gloo for low level collective apis ( #27672 )
...
* add gloo initializer, test=develop
6 years ago
Huihuang Zheng
b7107c65a6
[Dy2stat] Fix test_yolov3 to Run Correctly on Win/Mac ( #27666 )
...
We decreased the batch size on CPU so that it can run correctly on Win/Mac machine, this may cause the delta to be larger. So I set larger delta value.
6 years ago
danleifeng
6ad72106f9
[API 2.0] Fix api 'is_empty' ( #27593 )
...
* fix is_empty api and code example; test=develop
6 years ago
LiuChiachi
ee13a2ab88
Add transformer generate square subsequent mask api ( #27651 )
...
* add transformer generate square subsequent mask api
* add dtype for input, update doc, use -np.inf
* add dtype for input, update doc, use -np.inf
6 years ago
Kaipeng Deng
3ccee08285
numpy -> paddle in conv & conv_transpose ( #27669 )
...
* numpy -> paddle in conv. test=develop
6 years ago
whs
ca2892019a
Add label smooth to functional package ( #27642 )
6 years ago
arlesniak
0ecf441af1
Add support for mkldnn ops types selection with FLAGS in dygraph ( #27482 )
...
* Add support for mkldnn ops types selection with FLAGS in dygraph
* use regex to match DNNL verbose
* python3 encoding fix
6 years ago
YUNSHEN XIE
e7b476c15d
disable ut test_parallel_executor_fetch_isolated_var,test=document_fix ( #27641 )
6 years ago
mapingshuo
c29aa8c40e
fix reshape doc, remove reverse api ( #27592 )
6 years ago
Qinghe JING
1539a23822
Fix bugs in hdfs download ( #27344 )
...
* set default value to strategy in distributed_optimizer test=develop
6 years ago
cc
07b01b0e90
[doc] Change docs of WeightNormParamAttr to dygraph model ( #27571 )
...
* Change docs of WeightNormParamAttr to dygraph model, test=develop, test=document_fix
6 years ago
Leo Chen
c7e0a8bebf
Remove inplace argument when calling nn.reshape() ( #27376 )
...
* remove inplace argument
* fix sample code
* fix sample code
6 years ago
Leo Chen
26b6169106
Refine initializer to support not passing block in dygraph mode ( #27612 )
...
* support not passing block
* fix NumpyArrayInitializer
* add unit test
6 years ago
Yang Zhang
0873644cfe
Remove alias for `l2_normalize` ( #27616 )
...
functionality provided by `normalize`
6 years ago
Feiyu Chan
e1f8617ee2
bugfix: RNN does not initialize the state for the cell correctly ( #27644 )
...
1. fix a bug that paddle.nn.RNN does not initialize the state for the cell correctly;
2. add unittest for paddle.nn.RNN and paddle.nn.BiRNN
6 years ago
Li Fuchen
5e4f01f5ef
modified sample code of add_position_encoding to 2.0 ( #27561 )
...
* modified sample code of add_position_encoding to 2.0, test=document_fix
* use core.op in add_position_encoding API.
* add test for add_position_encoding in dygraph mode
6 years ago
Zhang Ting
a4c25b2f34
use paddle.is_compile_with_cuda ( #27586 )
...
* modify doc
6 years ago
yaoxuefeng
780140599f
【paddle.distributed.fleet】add data_generator in distributed.fleet.dataset ( #27345 )
6 years ago
Zhang Ting
eb37ee2a26
modify docs of program API, test=document_fix ( #27600 )
6 years ago
lilong12
36c0410223
Revert "Initialize gloo for low level collective apis ( #27356 )", test=document_fix ( #27665 )
6 years ago
Zeyu Chen
aed0080181
Remove NLTK requirements to avoid dependency security alert from Github Dependabot. ( #27628 )
...
Remove NLTK requirements to avoid dependency security alert from Github Dependabot
6 years ago
Pei Yang
ae6e40a7fd
Add unittests and OP version registry for tensorrt_subgraph_pass ( #27544 )
...
* add unittests and op version register for tensorrt_subgraph_pass
* rename to test_trt_subgraph_pass.py
* fix softmax converter diff when padding dim=1
6 years ago
123malin
6822307745
test=develop, rm netifaces ( #27581 )
...
* test=develop, rm netifaces
6 years ago
wanghuancoder
c68a0313a5
add paddle.fluid._cuda_synchronize ( #27595 )
...
* add paddle.fluid._cuda_synchronize, test=develop
* fix bug about core_avx core_noavx, test=develop
* delete CPUPlace and XPUPlace, test=develop
6 years ago
Li Fuchen
516d84b22a
fix tests warpctc ( #27639 )
6 years ago
liym27
074a71bd25
Support assignment to a Variable in dynamic mode but not deal with backward. ( #27471 )
...
* Support assignment to a Variable in dynamic mode. Note: not deal with backward.
* Rewrite VarBase __setitem__ for high-performance.
* try to test 3 means to do __setitem__ and test the performance of 3 means.
* Retain the means of the highest performance: C++ code and don't trace op.
6 years ago
lilong12
fa73e4a284
Initialize gloo for low level collective apis ( #27356 )
...
* add gloo initializer, test=develop
6 years ago
Tao Luo
bf99bc4a62
update name_scope example code ( #27594 )
...
* update name_scope example code
test=document_fix
* refine name_scope doc
test=document_fix
6 years ago
WangXi
5641ea2bf6
Remove optimizer which in fleet, test=develop ( #27606 )
6 years ago
littletomatodonkey
68df20d2f2
fix pad2d example code ( #27615 )
...
* fix example code
* rename var to tensor
* remove static
* fix return type
6 years ago
Aurelius84
7c5162400f
[API 2.0]Migrate api example for gradients/append_backward/program_guard ( #27570 )
...
* modify sample code
* variable -> tensor
* migrate program_guard sample code
* refine error message
* migrate program_guard
* refine comment style
* fix indent
6 years ago
Dong Daxiang
4e8f18ab25
Get final strategy ( #27602 )
...
* add get final strategy for user to print final strategy
6 years ago
furnace
d01f626944
update mv op according PR#27024 ( #27474 )
6 years ago
YUNSHEN XIE
d1c2a3bc6f
disable ut test_warpctc_op,test=document_fix ( #27632 )
6 years ago
littletomatodonkey
6e41143ffe
remove paddle.metrics.cos_sim api ( #27569 )
...
* fix api alias
* remove cos_sim
6 years ago
whs
96daa2594e
Fix padding in conv1d op ( #27590 )
6 years ago
Li Fuchen
1501a80f74
add support to float64 input of warpctc op. ( #27399 )
...
* add float64 input to ctc_loss
* modified error message of warpctc
* update repo and tag of warpctc
* add test for warpctc with float64 input
* modified warpctc.cmake to make sure build always
* resolved sample code bug of warpctc
* add core.ops in warpctc dygraph
* fix a bug of test
6 years ago
liym27
3f170dd83d
[API 2.0] Fix example code of api 'switch_case' and add/delete alias ( #27578 )
...
* Fix example code of api `fluid.layers.switch_case` to use api2.0
* delete `paddle.nn.switch_case` alias and add `paddle.static.nn.switch_case`
6 years ago
Zhou Wei
c5b6e44b4a
fix cholesky of test_math_op_patch_var_base ( #27591 )
6 years ago
liym27
9b7ebf1099
[API 2.0] Fix example code of api 'case' and add/delete alias ( #27577 )
...
* Fix example code of api fluid.layers.case
* delete paddle.nn.case alias and add paddle.static.nn.case
6 years ago
QingshuChen
6b727e08b1
support elementwise add, activation, matmul on Baidu Kunlun ( #27143 )
...
* support elementwise add, activation, matmul on Baidu Kunlun
* test=kunlun
* minor
* test=kunlun
* reconstuct the xpu directory
* test=kunlun
* minor
* test=kunlun
* minor
* test=kunlun
* minor
* test=kunlun
* minor
* test=kunlun
* minor
* test=kunlun
6 years ago
Jack Zhou
d37b3774fd
register log double grad kernel for cpu and cuda
...
register log double grad kernel for cpu and cuda
6 years ago
Zhou Wei
162b4d6c13
remove to_variable from 2.0 ( #27528 )
6 years ago
Chengmo
0e101c4f6f
Fix test dist fleet heter ctr ( #27513 )
...
* fix test_dist_fleet_heter_ctr & peformance update
6 years ago
Double_V
42065ba37a
fix activate_nn_grad, test=develop ( #27555 )
6 years ago
Double_V
b9d739a7ea
fix pool bug, test=develop ( #27537 )
...
* fix pool bug, test=develop
* fix coverage,test=develop
* fix bug, test=develop
6 years ago
gongweibao
86fa043205
init test=develop ( #27554 )
6 years ago
Chen Weihang
ecfdfc9c58
fix guard place set error ( #27573 )
6 years ago
joanna.wozna.intel
b0ee1405f7
Add conv2d bfloat16 support ( #27325 )
6 years ago
LielinJiang
b38e4f2840
Refine vision models ( #27476 )
...
* refine vision models
6 years ago
Leo Chen
0b4bb023a7
Add static mode check on data() ( #27495 )
...
* add static check on data()
* follow comments
* fix ut
6 years ago
Thunderbrook
6f69a4cb05
add xpu in heter mode ( #27000 )
...
* add xpu in heter mode
test=develop
* BOOST_CONST_GET; PADDLE_THROW
test=develop
* code style
test=develop
* code style
test=develop
* code style
test=develop
* refine
test=develop
* refine
test=develop
* refine
test=develop
* refine code
test=develop
6 years ago
ceci3
8daccc9ea7
Fix batch norm double grad compute ( #27549 )
...
* fix bn double grad, test=develop
* update, test=develop
6 years ago
Chen Weihang
c143326df5
try to fix test_paddle_save_load unknown timeout ( #27536 )
...
* try to fix paddle save load test
* open paddle save load
* replace dataloader
* remove dataloader
6 years ago
ShenLiang
6fc74bbaf6
add fp16 for matmul ( #27523 )
...
* add fp16 for matmul
6 years ago
Zhong Hui
fab4e6d08f
add abs support double grad
...
add abs support double grad for the api 2.0
6 years ago
Shang Zhizhou
77a36f8997
[buf fix]:fix some unittests error ( #27540 )
...
* [buf fix]:fix unittest test_activation_op error
* split long-time unittests to smaller ones
* rename some unittests
6 years ago
zhang wenhui
6e16a0997c
fix unittest_group_norm_op_v2, test=develop ( #27486 )
...
* fix unittest_group_norm_op_v2, test=develop
* fix unittest_group_norm_op_v2, test=develop
6 years ago
Chen Weihang
dd04b160d9
fix test imperative se resnext failed ( #27538 )
6 years ago
WangXi
e550fc02ae
fleet2.0 add fp16 grad compression ( #27480 )
6 years ago
cc
c5c13473c6
Add compatibility check for four mkldnn pass ( #27364 )
...
* Add pass compatibility check for four mkldnn pass, test=develop
6 years ago
Leo Chen
41a7ce8347
fix random failure of test_buffer_sahred_memory_reuse_pass ( #27551 )
6 years ago
Kaipeng Deng
8473ee9dae
make places of DataLoader optional. ( #27432 )
...
* make places of DataLoader optional. test=develop
6 years ago
Wilber
3d5522146e
register seq_concat_fc_fuse pass. ( #27479 )
6 years ago
123malin
32ad4f90a4
【paddle.fleet】 Usages Change: from fleet.util() to fleet.util ( #27468 )
...
* test=develop, bug fix
6 years ago
Huihuang Zheng
273f58a3c5
Decrease Random Failure Probability for test_parallel_executor_mnist, test=develop ( #27498 )
...
As the title, decrease random failure probability for test_parallel_executor_mnist
The old code set larger delta when comparing reduce and all reduce, but didn't set all. I added it.
On my linux machine, I run 100 times, no failure occurs. In addition, we only saw this random failure on CI two times since I worked. I thought it was rare and I just increased the delta.
6 years ago
Chen Weihang
59c049995e
change test main process wait time ( #27516 )
6 years ago
YUNSHEN XIE
b6ecf35627
disable test_paddle_save_load,test=document_fix ( #27534 )
6 years ago
Guo Sheng
081fb2f963
Remove dependency on nltk for paddle __init__. ( #27388 )
...
* Remove dependency on nltk for paddle __init__.
test=develop
* Remove nltk.movie_reivew sentiment dataset to remove dependency on nltk.
test=develop
6 years ago
Chen Weihang
f2c97b6da5
replace dataset with fake data ( #27519 )
6 years ago
LielinJiang
78a27a2b0d
Reproduce summary api ( #27367 )
...
* reproduce summary api
6 years ago
Aurelius84
fc9d80bc9e
[Dy2Stat]rename StaticLayer into StaticFunction ( #27487 )
...
* rename StaticLayer
* rename
6 years ago
Zhou Wei
5c8fdb5926
Fix GradientClipByGlobalNorm dtype bug ( #27437 )
...
* fix dtype of gradientclipbyglobalnorm
* fix dtype bug of GradientClipbyGlobalnorm
6 years ago
tangwei12
c0caf0e45f
fix ut for static graph ( #27506 )
6 years ago
YUNSHEN XIE
66951ab2ea
modified timeout value for 4 ut ( #27462 )
6 years ago
Chen Weihang
bb84f0e646
Add new paddle.save/load APIs ( #27331 )
...
* init commit of new save/load
* fix failed unittests
* fix save_load_v2 unittest failed
* fix failed unittest & polish doc
* add tests for coverage
* add more tests & move static apis
* fix example code error
* polish emample code
* fix detail example code problem
6 years ago
YUNSHEN XIE
19a58b3d5d
disable ut test_vision_models and test_pretrained_model,test=document_fix ( #27502 )
6 years ago
Zhou Wei
1e1ae5c54d
Make the Bind Method of Tensor more automatic ( #27270 )
...
* Makes the Bind Method more intelligent
* Makes the Bind Method more intelligent
* fix unittest
* fix unittest
* fix conflict
6 years ago
LutaoChu
5508c78744
Fix bug: The calculation result of Diag_v2 Op under large size input is wrong ( #27447 )
...
The calculation result of Diag_v2 Op under large size input is wrong
6 years ago
tangwei12
bc5f0246a8
large scale kv speedup ( #26510 )
...
* rename communicator meet->BatchesCounter
* fix parame recv for sparse
* geo sparse init from pserver
* optimize init from pserver
* add large scale optimizer fuse(SGD/ADAM)
* rectification init_worker and exe.run startup program
6 years ago
Qi Li
d7b7dcd10e
fix cmake dependencies of test_recognize_digits, test=develop ( #27475 )
6 years ago
cc
43240a1b81
[doc] Add example for cache and buffered ( #26819 )
...
* Add example for cache and buffered, test=develop, test=document_fix
6 years ago
Zhang Ting
906e7f921e
add fuse_bn_act op ( #27230 )
...
* add fused_bn_add_relu op
6 years ago
Wilber
5034d181f3
update for 2.0 inference api. ( #27473 )
6 years ago
danleifeng
0721767ba9
fix server_num bug;test=develop ( #27442 )
6 years ago
wangchaochaohu
76fb95fe76
avoid data transform for linspace OP ( #27444 )
6 years ago
pangyoki
827ac36faa
Use dygraph mode by default ( #27443 )
...
* default open dygraph mode
* fix CI-Mac
* fix Mac-CI other unittest file
* fix CI-Py3
* fix test_communicator_geo and test_buffer_shared_memory_reuse_pass
* add enable_static to fix CI-Py3
* add enable_static to fix CI-coverage
* delete try except
6 years ago
wangchaochaohu
0a862fd356
refine the precious of linspace Op using half way ( #27452 )
6 years ago
danleifeng
905e2346ac
add endpoints log;test=develop ( #27439 )
6 years ago
Aurelius84
7ba6279a25
[Dy2stat] Refine error msg of @to_static if not in imperative mode ( #27371 )
...
* refine error mesg
6 years ago
Kaipeng Deng
18f2ea66bd
remove paddle.readers API ( #26727 )
...
* remove paddle.readers API. test=develop
6 years ago
Zhong Hui
f4c750d721
Add the cpu version of segment sum mean max min op
...
Add the cpu version of segment sum mean max min op
6 years ago
guofei
3fe176df35
Fix test_gast_with_compatibility.py due to the problem of gast in python3.8 ( #27433 )
...
test=develop
6 years ago
furnace
13a4c74efd
add mv op(c++, python, unit test) ( #27024 )
6 years ago
LutaoChu
f11a53ee76
Optimize argsort Op performance on GPU
...
* argsort op acceleration on GPU when the input size is equal to the length of the ‘axis’ dimension
6 years ago
ceci3
1d3b27cae8
add double grad compute for batch norm ( #27296 )
...
* add double grad compute for batch norm,test=develop
* fix unittest, test=develop
* remove unuse tensor,test=develop
* add format,test=develop
* update, test=develop
6 years ago
Kaipeng Deng
4bd7aa2566
use paddle.get_default_dtype in vision datasets. test=develop ( #27426 )
6 years ago
danleifeng
fc61efd736
fix port env bug(int);test=develop ( #27405 )
6 years ago
Double_V
e217e965a9
fix pool bug ( #27366 )
6 years ago
Shang Zhizhou
d93661942e
fix bug sequececonv_eltadd_relu_fuse_pass ( #27404 )
...
* fix bug sequececonv_eltadd_relu_fuse_pass, output error when sequence_conv's padding_start > 0
* fix seqconv_eltadd_relu_fuse_pass unitest error
6 years ago
Leo Chen
aba759ba16
[Feature] Enhance inplace addto strategy for gradient accumulation in static graph ( #27112 )
...
* support use add instead of sum to do gradient accumulation
* add inplace addto pass
* add grad_add op and inplace addto pass
* remove debug code
* code refine
* fix bug when sereral sum ops inserts at same op_idx
* fix Flags type
* add addto attribute for conv3d
* fix ut
* code clean
* fix type
6 years ago
LutaoChu
669efb98de
Fix bug: shapes of Topk outputs are wrong when the parameter k is Tensor
...
Fix bug: shapes of Topk outputs are wrong when the parameter k is Tensor
6 years ago
Wilber
39546aa2f3
Add pass compatible and unit test. ( #27377 )
6 years ago
huangxu96
02606d45ef
Quant op dev ( #25932 )
...
* Finished ChannelWiseQuantDequantAbsMaxOp and Passed unittests.
* Finished channel-wise quantize strategy in imperative quantization.
* Added Cuda code of ChannelWiseQuantDequantMaxAbsOP
Add Cuda code of ChannelWiseQuantDequantMaxAbsOp
* Add quant_axis for channel_wise quant.
* fixed a bug in unnitests, which will not trigger axis = 1 case and cannot meet the coverage rate requirement.
* Added some assert infomation and fixed some coding style mistakes.
6 years ago
guofei
aa7835efee
Correct the error in decorator.py ( #27409 )
...
test=develop
6 years ago
Kaipeng Deng
f3b4a64add
fix CIFAR MNIST UCIHousing dataset. test=develop ( #27368 )
...
* fix CIFAR & MNIST dataset. test=develop
6 years ago
MRXLT
f936adbd2d
fix adam ( #27343 )
...
* fix adam
* rmsprop support double
6 years ago
tangwei12
d6b54de467
【paddle.fleet】Fix/role maker api fix ( #27326 )
...
* fix fleet util and gloo
* fix worker endpoints
* fix
* fix UT
* fix gloo
* fix gloo
* update gloo
* update gloo
* update gloo
* update gloo
* update gloo
* fix gloo wrapper for hdfs
* add file gloo and UT
* fix UT
* fix UT
* fix UT
* hide public method of RoleMaker
* fix UT
* GPU fleetrun support gloo
* parameterserver fleetrun support gloo
* add UT
* add UT
* fix UT
* fix get server endpoint
* fix get server endpoint
* fix UT
* hide public method of rolemaker
* hide public method of rolemaker
* hide public method of rolemaker
* Update test_fleet_rolemaker_new.py
* hide public method of rolemaker
* hide public method of rolemaker
6 years ago
tangwei12
99626502f7
【paddle.fleet】gloo and util ( #27213 )
...
* fix worker endpoints
* fix gloo wrapper for hdfs
* GPU fleetrun support gloo
* parameterserver fleetrun support gloo
* fix get server endpoint
6 years ago
liu zhengxi
4c5cfdea1b
fix paddle.nn.Transformer api ( #27391 )
6 years ago
Pei Yang
fd7ab4e63c
register pass compatibility ( #27357 )
...
* pass compatibility
* add compatibility registry
* add unittests for different padding
* add assert
* drop errmsg
6 years ago
haozech
7e6dfcf9b2
Add 3 pass version check ( #27283 )
6 years ago
LielinJiang
03b0e0c42b
Remove dependences of cv2 ( #27286 )
...
* rm dependence of cv2
6 years ago
chajchaj
fef94eac4e
fix cross_entropy bug of the axis parameter in log_softmax ( #27311 )
6 years ago
Zhen Wang
d28162b97f
Remove save_quantized_model in ImperativeQuantAware. ( #27240 )
6 years ago
liym27
ac82baa80d
[Dy2Stat-log] Add feature also_to_stdout and optimize log messages ( #27285 )
...
* Add env value to log to stdout; 2.Add logger name
* Optimize log messages in dygraph-to-static
* Replace logging.warn and warnings.warn with logging_utils.warn
6 years ago
Shang Zhizhou
3c11717988
add op version checker to ir passes ( #27329 )
6 years ago
furnace
515efe4240
add empty_like op (python, and unit test), use c++ implementation of empty op, ( #27287 )
...
and optimize the c++ implmentation of empty op as PR#26659 reviews,
and add bool for shape op.
6 years ago
123malin
f36b9a7f79
【Fleet2.0 Util】 add documents ( #26698 )
...
* test=develop, util documents
6 years ago
guofei
bcb4a583aa
Replace the 'spawn' start method with 'fork' start method for multiprocessing, on MacOS with python>=3.8 ( #27317 )
...
* Replace the 'spawn' start method with 'fork' start method for multiprocessing, on MacOs when python>=3.8
test=develop
6 years ago
Jack Zhou
63203c4abc
enhance reduce op which can reduce tensor with arbitrary rank
...
enhance reduce op which can reduce tensor with arbitrary rank
6 years ago
LiuChiachi
69279207eb
Update hapi.model._save_inference_model by using new features of dy2stat in 2.0-beta API ( #27272 )
...
* update model.save_inference_model
* update doc for _save_inference_model, delete useless class in unittests
* make users not be able to set model._inputs be None
* update usage of Model class in unittests
* fix bugs of _verify_spec
* fix bugs of _verify_spec
* add unittest to increase coverage rate
* delete http.log
* update doc for save, remove requirments and limitations for using
* update doc for class Model
6 years ago
YUNSHEN XIE
f0a5eef58f
cancel three disable ut ( #27359 )
6 years ago
YUNSHEN XIE
25902b2c12
del exclusive ut which name with test_dist_ ( #27316 )
6 years ago
ShenLiang
9ee77b1f41
Fix elementwise_floordiv op ( #27352 )
...
* fix floordiv
6 years ago
Zhou Wei
7d7f0fad7f
python for windows not install netifaces ( #27355 )
6 years ago
guofei
9bea834ed4
Refine the unittest to support py38 ( #27208 )
...
* Refine the unittest to support py38
test=develop
6 years ago
Zhou Wei
a7fadce82f
fix dll load bug on windows from python3.8 ( #27324 )
6 years ago
Huihuang Zheng
d4b4357bc0
[Dy2stat] Change the Global Switch Name of ProgramTranslator for API 2.0 ( #27203 )
...
Change ProgramTranslator.enable_declarative to ProgramTranslator.enable_to_static to meet API 2.0
6 years ago
danleifeng
8d05c00c67
fix paddle.fleet en-doc for apis in dynamic mode ( #27354 )
...
* fix fleet dynamic-mode en-doc;test=develop
6 years ago
ShenLiang
746a8ded29
fix comment of adaptive lsgd ( #27362 )
6 years ago
wanghuancoder
bf8e030eed
modify test_imperative_using_non_zero_gpu from use two gpus to one gpu ( #27348 )
...
* add op_function_generator.exe retry in windows, test=develop
* modify test_imperative_using_non_zero_gpu from use two gpus to one gpu, test=develop
6 years ago
Leo Chen
189e10f1dd
Remove unnecessary requirements ( #27341 )
...
* remove objgraph
* remove graphviz
* fix ut
6 years ago
gongweibao
11bcf0e21c
Cleanup redundant code files ( #27319 )
6 years ago
ShenLiang
54b81fa32c
add adaptivelsgd in meta_optimizer ( #27289 )
...
* add adaptivelsgd
* Todo fix the code to avoid the conflict.
6 years ago
Yibing Liu
34091533c9
Fix bug in continuous apply, test=develop ( #27337 )
6 years ago
Chen Weihang
c23f09fea6
Support load state_dict from save_params/persistables ( #27298 )
...
* support load state_dict from save_params/persistables
* remove failed unittest
* add load eof check & unittest
* remove eof check
6 years ago
yaoxuefeng
c67c391682
refine fleet dataset class api ( #27133 )
6 years ago
ShenLiang
c296618c94
fix error message in broadcast/allreduce/gather ( #27302 )
...
* fix error message
6 years ago
Chen Weihang
950301bfa1
Add input_spec & output_spec for TranslatedLayer ( #27284 )
...
* add input_spec & output_spec for translated_layer
* update error message
6 years ago
littletomatodonkey
18fc927562
add regularizer api ( #27292 )
6 years ago
YUNSHEN XIE
8fe1c2d1c2
move three ut to execute only at night ( #27314 )
6 years ago
Zhen Wang
ef6dd6b8e6
fix the test_fleet_lars_meta_optimizer ut. ( #27291 )
6 years ago
danleifeng
389a9a7e0e
fix ports conflict when use paddlecloud to launch analogue multi-nodes ( #26191 )
...
* fix ports conflict when launching multi-nodes in paddlecloud;test=develop
* add DISTRIBUTED_TRAINER_ENDPOINTS env for cloud;test=develop
6 years ago
mapingshuo
9dedafa0df
fix strategy, test=develop ( #27323 )
...
* fix strategy, test=develop
* fix can_apply
6 years ago
chalsliu
c8e54c5e42
Disable unit-test test_fleet_rolemaker_new
6 years ago
Shang Zhizhou
47fdc60ecc
Optimize slice trt plugin ( #26970 )
...
* optimize slice TRT plugin
This patch removes unnecessary barrier for data transfer of needed offset,
so data transfer can be overlap with GPU kernel execution.
This patch also fixes incorrect name of slice plugin. That is, replaces
"layernorm" with "slice"
test=develop
* add serialize/deserialize to slice plugin
* add static shape slice trt plugin
* fix slice trt op convertor dynamic shape bug
* fix format by clang-format
* fix pylint format error
* fix problems commented by peiyang
Co-authored-by: Ryan Jeng <rjeng@nvidia.com>
6 years ago
Wilber
f827665ae6
[Pass Compatible] Bind python compatible. ( #27262 )
6 years ago
Shang Zhizhou
e6e2e53782
Optimize error report ( #27254 )
...
* optimize errror report
* add test case for pad op converter
* fix some spelling mistake commented by peiyang
6 years ago
GaoWei8
ee1ed42c99
change sequence length attribute to input ( #27193 )
...
* replace sequence length attr to input
6 years ago
cc
2d8281d5ad
Remove the cache in post_traning_quantization, test=develop ( #26450 )
...
* Remove the cache in post_traning_quantization, test=develop
6 years ago
YUNSHEN XIE
6947a58a1f
disable three unittests,test=document_fix ( #27299 )
6 years ago
zhupengyang
ac9afa024b
paddle.nn.functional.logsigmoid -> log_sigmoid ( #27277 )
6 years ago
lilong12
bc3e9ba1c6
check the validation of parameters for expand and tile apis ( #26816 )
...
* bug fix, test=develop
6 years ago
LielinJiang
a685435962
fix conv depthwise bug ( #27278 )
...
Fix conv deepwise bug when in_channels=1.
6 years ago
xiaoting
d4f03dfb71
fix for tuple,test=develop ( #27190 )
6 years ago
MRXLT
9166307315
add check for sparse parameters with weight_decay ( #27141 )
...
* add check for sparse parameters with weight_decay
* move sparse check to adam.py
6 years ago
Chen Weihang
8d53172794
move DataLoader._worker_loop to top level ( #27247 )
...
* move worker loop to top level
* move reader process loop to top level
* fix failed unittests
6 years ago
Zhen Wang
d708b21074
Update amp_check_finite_and_scale_op and add an updating_loss_scaling op for static graph amp training. ( #26240 )
...
* update amp_check_finite_and_scale_op for static_amp.
* use amp_check_finite_and_scale in static graph amp.
* update grads to zero when grads own infinite values(as for amp_checkout_finite_and_scale op).
* add update_loss_scaling op in cpp.
* add update_loss_scaling_op unit test.
* update the doc of the check_finite_and_unscale op
* Update the process of gradients updating skipping if the gradients have infinite values.
* update the way to zero grads.
* update test_update_loss_scaling_op.py
* add log info when find infinite grads.
* add the unit test for UpdateLossScaling Layer.
6 years ago
ShenLiang
2b6a5793fe
remove auto mode from localsgd optimizer ( #27237 )
...
* rm auto from localsgd
6 years ago
Adam
cc3f4b813a
Add int8 GRU kernel ( #27220 )
...
* Add int8 GRU kernel with UTs
* Lint fixes
* More lint fixes
6 years ago
Leo Chen
19228bd142
Temporally disable zero_copy ( #27248 )
...
* temporally disable zero_copy
* add test
* follow comments
6 years ago
Leo Chen
f402d8d8c0
fix bug when axis is a tensor with more than 1 element ( #27263 )
6 years ago
Aurelius84
20a84820fd
fix unused var with zero gradient bug in fluid.gradient ( #27246 )
...
* fix calcu_gradients
* fix code place
* fix embedding interface usage
6 years ago
Chen Weihang
33ff833af2
fix loaded no params layer run error ( #27241 )
6 years ago
liym27
3e20ddf73d
[Dy2Stat - Error Handling] Fix bug and optimize dy2stat error. ( #27225 )
6 years ago
Chen Weihang
ac8afe184e
use structured name in loaded dict ( #27242 )
6 years ago
Aurelius84
5e0dde02b2
[Dy2stat] support usage: to_static(model) ( #27040 )
...
* support to_static(model)
* add warning and unittest
6 years ago
furnace
2e59769612
add empty op (c++, python, unit test) ( #26659 )
6 years ago
Zhen Wang
b671538623
* Reduce the training iterations in test_fetch_unmerged and test_fuse_bn_act_pass. ( #27234 )
...
* Use the single GPU card to execute the test_fuse_bn_act_pass UT.
6 years ago
Zhen Wang
ece74c4cd4
Update the _get_fake_quant_type definition in imperative QAT. ( #27222 )
6 years ago
lilong12
c5f957ae38
add double grad for tile op and expand_v2 op ( #27114 )
...
* add double grad for tile, test=develop
* add double grad for expand_v2 op, test=develop
6 years ago
lilong12
58a88ba9af
add double grad for expand ( #27183 )
...
* add double grad for expand, test=develop
6 years ago
Chen Weihang
5406b014c0
Refine jit.save implement to adapt InputSpec using cases ( #26959 )
...
* add some unittest cases ot verify jit.save, no_test
* add more unittests
* add test with example inputs
* polish implement details
* remove useless blank
* fix fetch random error
6 years ago
ShenLiang
5bd84b22c4
revert divide ( #27202 )
6 years ago
123malin
60c3ef3ab8
【paddle.fleet】parameter_server_optimizer support auto_strategy ( #27181 )
...
* parameter_server_optimizer support auto_strategy
6 years ago
wawltor
fde5cfe881
fix the CudaPinMemory bug for the equal op ( #27176 )
...
fix the CudaPinMemory bug for the equal op and add the test case for the equal op
6 years ago
liym27
d3874ab44a
Move unittest test_optimizer_in_control_flow from CI multi_cards. ( #27185 )
6 years ago
Huihuang Zheng
40dd563dd7
Decrease test_parallel_executor_crf CI time, test=develop ( #27212 )
...
Decrease the number of running iterations to reduce CI time.
CI system shows it decreased the unittest time from about 90 seconds to about 30 seconds
6 years ago
zhupengyang
cc3306f7c8
restruct logsumexp to speed up compiling ( #27191 )
6 years ago
JZ-LIANG
5d039f4086
modified the implement of Lars optimizer ( #26733 )
...
add lars to fleet meta optimizer
6 years ago
liym27
a1b640bc66
Fix test_origin_info to be compatible with PY3.8, because ast module is different in PY3.8 ( #27201 )
6 years ago
Dong Daxiang
f7d08b7db8
【paddle.fleet】refine launch and distributed repr string for print ( #27093 )
...
* refine launch and distributed repr string for print
6 years ago
Qinghe JING
43b0445b29
Add double grad in reduce sum ( #27115 )
...
* set default value to strategy in distributed_optimizer test=develop
6 years ago
iducn
c60352b3d4
update requirements ( #27172 )
...
* update requirements.txt
* add unittest_py directory and add new requirements.txt file,test=document_fix
* add unittest_py directory and add new requirements.txt file,test=document_fix
6 years ago
tangwei12
ca6100de5f
disable ut, fix it @malin ( #27200 )
6 years ago
liym27
3497fbe473
Use paddle.disable_static() to replace with dygraph.guard(). ( #27139 )
6 years ago
Aurelius84
252aeb1a46
[Dy2stat]Add naming rule if not specific InputSpec.name ( #26997 )
...
* Add naming rule if not specific InputSpec.name
* fix function name typo
* refine comment
* remove print statement
6 years ago
yongqiangma
4558d395e9
fix Norm op error ( #26771 )
...
* fix frobenius_norm error, rm p=0 2-axis support. test=develop
6 years ago
LielinJiang
4d7d661249
Fix kl and summary bug ( #27132 )
...
* fix summary rnn
* fix kl_div bug when input shape is [1] and reduction is batchmean
6 years ago
Double_V
c7b9d97fa9
fix avg_pool3d count_include_pad as True,test=develop ( #27155 )
6 years ago
whs
eb01976037
[2.0 API]Add checker in grid_sample_grad op ( #27126 )
6 years ago
wangguanzhong
a28ae86e11
Enhance ops to support LoD as input for dygraph detection models. ( #25316 )
...
* enhance collect_op for dygraph, test=develop
* enhance detection ops with lod, test=develop
* support none bbox left in generate_proposals, test=develop
* unfiy MultiLevelRoisNum, test=develop
* update core.ops, test=develop
* add op register for new input & output, test=develop
6 years ago
yaoxuefeng
0dab0fc23c
add back triu in fluid ( #27135 )
6 years ago
123malin
f2d68d3ed5
【paddle.fleet】parameter_server_optimizer support auto_strategy ( #26838 )
...
* test=develop, add ps auto
6 years ago
Chen Weihang
4c70e31ab5
add save load to jit.all ( #27131 )
6 years ago
LielinJiang
8df5b4d608
Add correlation api to contrib ( #27015 )
...
* add correlation api to contrib
6 years ago
tangwei12
5dec254be5
fix weight ( #26986 )
...
* fix weight
* fix weight and fix doc
* fix embeeding padding idx
* add UT
* fix interval
6 years ago
yinhaofeng
dc00bd67ff
delate some wrong message test=develop, test=document_fix ( #26595 )
...
* delate some wrong message test=develop, test=document_fix
* delate some wrong message
6 years ago
Leo Chen
d6ee0868a4
fix unsqueeze in dygraph ( #27107 )
...
* fix unsqueeze in dygraph
* add test
* add test
6 years ago
xiaoting
58f3ef982a
fix typo for interp_v2,test=develop ( #26843 )
...
* fix typo for interp_v2,test=develop
* align with torch, test=develop
* add area mode, test=develop
* fix bug, test=develop
* format notes, test=develop
* update for converage, test=develop
* fix bilinear, test=develop
* fix bicubic, test=develop
* fix typo, test=develop
* fix coverage, test=develop
* fix helper.input_dtype, test=develop
* polish notes, test=develop
* polish notes, test=develop
* polish notes, test=develop
6 years ago
ceci3
54d8424e93
[2.0API] fix weight_norm support negative dim and unittest in convert_syncbn ( #27108 )
...
* fix 2.0api, test=develop
* fix, test=develop
6 years ago
ShenLiang
aca450f6fb
fix the localsgd optimizer ( #27094 )
...
* fix the localsgd
6 years ago
Chen Weihang
c1a8868732
Change jit.save/load configs to config & update code examples ( #27056 )
...
* change configs to config & update examples
* fix deprecate decorator conflict
6 years ago
Dong Daxiang
0443b480b8
【paddle.fleet】add auto parallel L1 implementations ( #27090 )
...
* add auto parallel L1 implementation
test=develop
6 years ago
wangchaochaohu
5af81f833c
fix gpu kernel for numel Op ( #27085 )
6 years ago
wawltor
39d5bb6dce
udpate the dtype check for the argmin, argmax
...
fix the bug for dtype check for the argmin/argmax
6 years ago
guofei
3a02424a4e
Refine the error of test_dynrnn_static_input ( #27084 )
...
test=develop
6 years ago
Wilber
632125415c
Refine python inference api ( #26958 )
6 years ago
Sylwester Fraczek
eb65877ce0
fix dimensions error for mobilenetv1_KL_quant ( #26776 )
...
* fix dimensions error for mobilenetv1_KL_quant
fixes AssertionError: The size of weight scales vector (1000) does not match the number of output channels (1024) in the weights tensor fc7_weights.
add mul test
* remove comment
* add third case unit test
6 years ago
wawltor
24ec5175ab
remove the dependence of matplotlib in dataset of uci_housing
...
remove the dependence of matplotlib in dataset of uci_housing
6 years ago
pangyoki
f0b26313d8
fix _check_values_dtype_in_probs method in Distribution class ( #27046 )
6 years ago
GaoWei8
4ff16eb201
Add padding cudnn interface ( #26370 )
...
* add lstm cudnn of padding data and refine cudnn codes
6 years ago
Aurelius84
35f53ecd93
[Dy2stat] Add descriptor cache for StaticLayer ( #26987 )
...
* add descriptor cache
* fix self arugments
* deal case if instance is None
* clean code
* fix usage
6 years ago
Chen Weihang
9373cf5ae4
Add TranslatedLayer.program method to get program ( #26961 )
...
* add TranslatedLayer.program method
* add unittests & update example code
* polish example code
* update program api example code
6 years ago
wawltor
8857e3911f
add the dynamic dtype check for the argmin/argma
...
update the check for the dtype check for the argmin, argmax
6 years ago
wangchaochaohu
041f4ab842
refine linspace Op for dtype setting( #27071 )
6 years ago
Yang Zhang
92530ca445
Fix clip output var dtype ( #27029 )
6 years ago
wangchaochaohu
c3b314c373
refine the error of message test=develop ( #27067 )
6 years ago
zhupengyang
2f97ecdd74
fix normal ut by set manual_seed ( #27028 )
6 years ago
wangchaochaohu
8fa3d367ed
Remove "TypeError" from some files as required ( #27019 )
6 years ago
Chengmo
a72752263b
support heter-xpu-ps ( #27018 )
...
support heter-xpu-ps
6 years ago
AshburnLee
d843706230
add shape check for fill_constant OP and remove doc of type error ( #26919 )
6 years ago
whs
2660ea379d
Fix cuda kernel of affine grid ( #27003 )
...
test=develop
6 years ago
pangyoki
a0c98e67a6
fix dtype not matching bug in log_prob and probs method of Distribution class ( #26767 )
...
* fix _to_tensor method of Distribution class
* Add unittest
* let dtype be consistent with value in log_prob and probs
* fix format
* fix dtype problem and change unittest
* fix dtype of Numpy class in unittest
* add formula for entropy and kl
* change formula
* fix kl formula format
* fix kl formula format 2
* change gt to np in unittest
* optimize unittest format
* delete dumplicate
* delete dumplicate 2
* extract common function used to convert dtype value
6 years ago
LielinJiang
f95e8ffc90
Fix conv and summary api bug ( #27023 )
...
* fix conv output_size has no default value bug
* fix summary bug
6 years ago
Double_V
0dfe26d069
add pool unittest ( #26949 )
6 years ago
arlesniak
8aebcabf34
Test for passing global env FLAGS_use_mkldnn ( #26938 )
6 years ago
zhang wenhui
21565e8d85
fix batchnorm ,test=develop ( #26972 )
6 years ago
Aurelius84
695bfb0765
reduce repeat time of Predictor ( #27011 )
6 years ago
liym27
54427b8030
[Api2.0] sum: bug fix - support attr(dtype) is float32 or int32 and add ValueError ( #26946 )
6 years ago
ShenLiang
ff3dc8ac73
fix the remainder ( #26995 )
6 years ago
Zhou Wei
352ac149ee
update doc of paddle.to_tensor ( #26820 )
...
update doc of paddle.to_tensor
6 years ago
MRXLT
72f6e566be
fix sample code ( #26962 )
6 years ago
pangyoki
46057dd2ac
change uniform_random to uniform and optimize function names in unittest for random ops ( #26951 )
...
* fix unittest format and extract common function
* change function name
6 years ago
yaoxuefeng
7f3e6ca596
add cuda generator ( #26786 )
6 years ago
Chengmo
c4846196b8
fix Heter Ps multi thread ( #26876 )
...
* fix heter-ps multi thread
6 years ago
huangjun12
fcb2ac6001
fix alpha dropout bug when p=1, test=develop ( #26977 )
6 years ago
mapingshuo
9e4fe92303
fix strategy example ( #26856 )
...
* fix doc
* test=develop
* test=develop
* test=develop
* test=develop
* test=develop
* test=develop
* test=develop
* test=develop
* fix doc, test=develop
* update localsgd doc
test=develop
* update localsgd doc
test=develop
* fix fleet dgc amp doc, test=develop
* fix, test=develop
* fix async configs
Co-authored-by: liuyi05 <gavin1332@gmail.com>
Co-authored-by: WangXi <wangxi16@baidu.com>
Co-authored-by: seiriosPlus <tangwei12@baidu.com>
6 years ago
danleifeng
6b4ca0d7f1
【paddle.fleet】distributed_optimizer supports dygraph ( #26541 )
...
paddle.distributed.fleet supports dynamic graph execution.
6 years ago
danleifeng
3a2a711681
【paddle.fleet】simplify fleetrun log infos ( #26888 )
...
* print detailed and clear log infos; test=develop
6 years ago
danleifeng
e35ad3eee8
【paddle.fleet】support running python train.py for fleet tasks ( #26249 )
...
* support running python train.py for fleet-task; test=develop
6 years ago
Chen Weihang
9cb57f94c6
Update set_dict method name & add aliases ( #26700 )
...
* update set_dict method name & add aliases
* fix var name error
* fix alias formats
* use set_state_dict in unittest
* add decorator solve compatible problem
* polish decorator
* replace layer set_state_dict by patched method
* remove import monkey path layer
* fix import function error
* add unittest for coverage
6 years ago
ruri
3900f66c19
[API 2.0]Fix adaptive pooling bug ( #26922 )
...
* fix
* fix doc, test=document_fix
6 years ago
Chen Weihang
209273e605
Support load state dict form `inference model` format save result ( #26718 )
...
* support load infer model format state dict
* add unittests
* remove keep name table
* recolve circle inport
* fix compatible problem
* recover unittest
* polish doc and comment
6 years ago
Zhen Wang
bcdbac1753
fix some cast error. ( #26884 )
6 years ago
zhupengyang
6a09b8f1cb
erase Raises and refine doce of random functions ( #26901 )
6 years ago
LielinJiang
559d9f2bb9
Add summary for hapi ( #26386 )
...
* add summary for hapi
6 years ago
Zhou Wei
d5f4c39fda
set_default_type only take effect on python floats or complex ( #26939 )
...
* set_default_type only take effect on python floats or complex
* fix doc
6 years ago
Leo Chen
1275659ccc
refine paddle.stack ( #26886 )
...
* refine paddle.stack
* support TensorArray
* add test
* fix coverage problem
* fix coverage problem
* fix sample code
6 years ago
LielinJiang
96331f74d7
fix conv1d padding ( #26921 )
6 years ago
littletomatodonkey
3ba7b9b567
fix regularizer timeout ( #26952 )
6 years ago
ruri
05da5a3cdd
remove matplotlib requirement files ( #26948 )
6 years ago