qingqing01
8bbedc2371
Fix doc format for callbacks, metrics and Model ( #28638 )
...
* Fix doc format for callbacks, metrics and Model
* Fix code sample and doc
5 years ago
Chen Weihang
a1486091f1
Polish load_program_state design to loading file onebyone ( #29041 )
...
* change load dict file one by one to warn
* add unittests for coverage
* polish error message
* fix cond error
5 years ago
GaoWei8
a049dff78f
Modify the default setting of softmax cudnn ( #28672 )
5 years ago
WeiXin
fafadbab70
Rename variables when use 'jit.load' ( #28933 )
...
* Rename variables when use 'jit.load'
* Check whether the original graph contains the variable with the same name
* add comment
* rename output/input of op and edit unittest
* modify the code according to CI
* edit code according to CI
* edit code according to CI
* edit code according to CI
* edit code according to CI
* edit code according to CI
* edit code according to CI
5 years ago
ceci3
a3faa520ec
Fix syncbn ( #29013 )
...
* fix syncbn
* add unittest
5 years ago
joejiong
582c0a0468
add uint8 for reshape op ( #28996 )
...
add uint8 for reshape operator
5 years ago
FlyingQianMM
f0e614feae
change print([.*].numpy()) to print([.*]) in example codes of sigmoid_focal_loss ( #29094 )
...
* rewrite the sigmoid_focal_loss code example. test=develop
* fix spelling mistake in comments of code example.test=develop
* change print([.*].numpy()) to print([.*]) in example codes of sigmoid_focal_loss. test=document_fix
5 years ago
liym27
682cc17f53
[Dynamic-to-Static] Fix bug: support pop from a dict and polish code of convert_pop ( #29023 )
...
* Support pop for dict in dy2stat
* Move convert_pop to convert_operators.py and polish convert_pop
5 years ago
Zhou Wei
8ca0a8a859
fix tensor detach to zero copy ( #27921 )
...
* fix tensor detach to zero copy
* fix tensor detach to zero copy
5 years ago
GaoWei8
13828db313
Add reminder of fluid.layers.lstm ( #28964 )
...
* add reminder of fluid.layers.lstm
5 years ago
Aurelius84
8af0d85ea4
fix unittest failed on windows GPU ( #29072 )
5 years ago
chajchaj
dfaf6b5eea
save one name in cross_entropy and softmax_cross_entropy, test=develop ( #29074 )
...
* save one name in cross_entropy and softmax_cross_entropy, test=develop
* change used function in CrossEntropy from softmax_cross_entropy to cross_entropy, test=develop
5 years ago
taixiurong
a5aa4dc7a9
add xpu elementwise ops ( #29031 )
5 years ago
tianshuo78520a
e9acd9c941
Update CI Python3 Docker for Cuda11 ( #28401 )
5 years ago
joejiong
b04c78ef5e
Update pow ( #29000 )
...
Simple code clean up
5 years ago
huangxu96
40f5453725
Quant nn2.0 ( #28764 )
...
* Impelement 2.0 API version Conv2d and Linear layer quantization in imperative mode.
* use cudnn softmax in static Lenet
* Modified ChannelwiseQAT Unittest for 2.0 API.
* For CI python coverage.
5 years ago
Chen Weihang
bb16c2515d
Polish parallel api impl & doc details ( #28980 )
...
* polish parallel api impl & doc details
* add unittest for coverage
* remove spawn test in py2.7
* add parallel api into white list
5 years ago
joejiong
4b05a8be88
delete axis parameter in multiply api ( #28647 )
...
As the title
5 years ago
YUNSHEN XIE
c098a2e159
fixing cmake error for WITH_GPU=ON and WITH_DISTRIBUTE=OFF ( #29030 )
5 years ago
chajchaj
b52427327d
add soft_label and axis for CrossEntropyLoss and improve performance ( #29024 )
...
* add soft_label and axis for CrossEntropyLoss and improve performance,test=develop
* fix conflict in nn/functional/loss.py, test=develop
5 years ago
Chen Long
018e169923
fix some docs ( #29011 )
...
* fix some docs test=develop;test=document_fix
* add code example test=develop;test=document_fix
* fix code example test=develop;test=document_fix
* fix code example test=develop;test=document_fix
* fix code example test=develop;test=document_fix
5 years ago
ysh329
9a475582e0
fix clip by norm EN doc. test=develop ( #28994 )
...
* fix clip by norm eng doc. test=develop
5 years ago
Huihuang Zheng
5b339262bc
[Dy2stat] Add Tuple as Assign Target for Tensor Shape ( #28775 )
...
Add support for using tuple as tensor.shape (For example: a, b, c, d = x.shape)
5 years ago
YUNSHEN XIE
5cb8e17a18
restore timeout value ( #29027 )
5 years ago
Jiawei Wang
f21513307a
add lamb optimizer and unittest ( #28772 ) TODO:FIX BUGS LATER
...
* add lamb optimizer and unittest
* fix lamb
* fix lamb v2 op
* fix sampling id
* fix lamb sample code
* Update lamb.py
* fix doc
* fix doc
* Update lamb.py
5 years ago
Leo Chen
3815d7aa40
Upgrade string literals to raw string ( #28989 )
...
* upgrade comment string to raw string
* fix string in
* fix string with ' '
* revert update on comments
* upgrade only necessary
* fix sample code checker
* fix comments with '''
5 years ago
liym27
85292e0b46
[Dynamic-to-Static] Fix bug of convert_logical_and/convert_logical_or: the operands are executed sequentially( #28993 )
...
1) The operands are executed sequentially according to the running logic of Python.
2) If the left hand operand is True(for convert_logical_or)/False(for convert_logical_and), the right hand operand should be executed.
5 years ago
Huihuang Zheng
96126532cd
Fix Incorrect After Node Vars in IfElseTransformer, test=develop ( #28992 )
...
The PR description is long. See details in the PR link.
5 years ago
LielinJiang
982fd0f3c2
fix mnist fmnist ( #29018 )
5 years ago
wanghuancoder
887a35113e
fix eng doc for some api ( #28477 )
...
* fix eng doc, test=develop
* add import deprecated for layers, test=develop
* add block line for doc generate, test=develop
* remove todo for create_variable, test=develop
* add blank line for doc generate, test=develop
* add blank line for doc generate, test=develop
5 years ago
smallv0221
83cee3c9d7
Delete mq2007 dataset. ( #28995 )
...
* Fix en doc for rnn.py. test=document_fix
* Delete mq2007 dataset.
5 years ago
Chen Weihang
9cd09a8586
Polish dataloader doc detail & update example ( #28975 )
...
* polish dataloader doc detail, test=decument_fix
* fix commnet error
* fix word error
5 years ago
123malin
fbf9564f6b
【paddle.distributed.fleet】Optimize ParameterServer's Async Mode ( #28442 )
...
* test=develop, optimize global_step
5 years ago
Leo Chen
98adc8f054
Dev/fix doc of some api ( #28785 )
...
* refine doc of bernoulli
* fix some problems
* fix unsqueeze
* fix squeeze
* fix doc
5 years ago
lilong12
f77a78cdee
enable pipeline to run with Executor.run() ( #28373 )
...
* update, test=develop
5 years ago
lijianshe02
9f642ed881
fix English doc for dice_loss, log_loss, unfold and NLLLoss API test=… ( #28739 )
...
* fix English doc for dice_loss, log_loss, unfold and NLLLoss API test=document_fix
5 years ago
joejiong
4e00c095fa
fix warning in english doc ( #28981 )
5 years ago
LiuChiachi
70385518a6
Add EarlyStopping ( #28691 )
...
* add early stopping
* add doc for early stopping
* fix sample code bugs
* update infer of mode, update doc, add unittests to increase coverage rate
* fix sample code for early stopping
* update sample code and unittests
* reduce time cost of test_callbacks unittest
* fix model.py code style error
5 years ago
LiuChiachi
8c8b42f28a
Update path name of saving in hapi ( #28462 )
...
* update hapi save_inference_model output pathname
* update hapi save_inference_model output pathname
* use new 2.0-api paddle.static.io.load_inference_model
* add unittests to increase coverage rate
5 years ago
Thunderbrook
0073f9bdb0
support ps-gpu ( #28752 )
...
* ps gpu transpile
* ps gpu
* remove op
* gps trainer
* local ps
* add macro
* HeterBox
* def cuda
* tab
* code style
* style
Co-authored-by: Thunderbrook <a754913769#163.com>
5 years ago
Chen Weihang
768dab441e
polish two api doc detail, test=document_fix ( #28971 )
5 years ago
Chen Weihang
7c7cdf082f
remove fluid & variable in program ( #28966 )
5 years ago
furnace
8ff3550658
refactor momentum op to combine weight ( #27414 )
...
* refactor momentum op to combine weight_decay (scale op and sum op)
5 years ago
YUNSHEN XIE
50113f9268
fix error for Can not find test to add properties to:test_parallel_dygraph_transformer,test_parallel_dygraph_sparse_embedding ( #28968 )
5 years ago
Zhang Ting
3416c35996
refine doc of default_startup_program, test=document_fix ( #28951 )
5 years ago
Zhang Ting
842fd2933c
remove fluid in default_main_program doc, test=document_fix ( #28941 )
5 years ago
Zhang Ting
b5218227d6
refine the doc of dist op, test=document_fix ( #28947 )
5 years ago
LielinJiang
8f8a02fda4
Optimize conv performance ( #28766 )
...
* optimize conv performance
5 years ago
LielinJiang
00e55ded4a
Add lr scheduler callback for high level api ( #28737 )
...
* add lr scheduler
5 years ago
yaoxuefeng
6369463a5d
fix test datagenerator ut fail ( #28767 )
5 years ago
Kaipeng Deng
ed7aa8f9c3
Fix conv transpose ( #28629 )
...
* fix conv_transpose unittest. test=develop
5 years ago
Chen Weihang
bff4179cc7
lazily init global group in collective ( #28780 )
5 years ago
gongweibao
1dad8ceaab
Fix gpu memory allocation bug. ( #28703 )
5 years ago
Kaipeng Deng
91bab752a9
fix dataloader default value and doc ( #28728 )
...
* fix dataloader. test=develop
5 years ago
Chen Weihang
0ed80e09fc
Fix param base trainable set failed ( #28756 )
...
* fix param base trainable set failed
* add unittest
* fix typo
* polish comment
5 years ago
Aurelius84
d6aee7597c
[Dy2Stat]Set buff.persistable=False when it's not initialized ( #28749 )
5 years ago
joejiong
1a532d5133
add uint8 support for squeeze operator ( #28734 )
...
Adding uint8 support for squeeze operator.
5 years ago
123malin
9066828b1b
test=develop, bug fix for embeddings padding ( #28708 )
...
* test=develop, bug fix for embeddings padding
* fix raise Value for Embedding
Change-Id: I6d343fceee369a5796ad59cca5c91fdd15429125
Co-authored-by: seiriosPlus <tangwei12@baidu.com>
5 years ago
Bai Yifan
655d5eb1db
fix code example ( #28636 )
...
* fix code example, test=document_fix
5 years ago
joanna.wozna.intel
8c0ea4bffe
Add bf16 matmul, fc, elementwise add and mul ( #28729 )
...
* Add bf16 matmul, fc, elementwise add and mul
* Correct unit test
5 years ago
Zhou Wei
3b0dd5f620
fix bug that to_tensor not support paddle.Place ( #28717 )
5 years ago
Aurelius84
e1c8d6bce5
Fix wrong out dtype inferred from helper.input_dtype ( #28715 )
...
* Fix wrong out dtype from helper.input_dtype
* add unittest
* remove disable_static in op_test
* fix param name typo
5 years ago
taixiurong
d3d1a6b6e0
add kunlun kernel: slice, slice_grad, top_k, cast. *test=kunlun ( #28542 )
...
* 1.add xpu slice op 2. add xpu top_k op 3.modify xpu cast to new api
* 1.add xpu slice op 2. add xpu top_k op 3.modify xpu cast to new api
5 years ago
Jack Zhou
9362d85e0e
Add LSTM, Simple RNN and GRU CPU kernel ( #28577 )
...
* add lstm, simple rnn op kernel
* fix the test_lstm for the rnn op
* change func name
* fix forward postprocess bug
* add gru forward, backward code
* remove unittest.skipIf; use a big rnn op instead of combination op
* fix input doesn't have gradient bug
* add eigen lstm forward, backward
Co-authored-by: wawltor <fangzeyang0904@hotmail.com>
5 years ago
QingshuChen
30ef3815b3
adjust kunlun header file ( #28536 )
...
* adjust kunlun header file
*test=kunlun
* update kunlun unittest
*test=kunlun
* update xpu unitest
* test = kunlun
* update xpu unittest
* test=kunlun
* update xpu unitest
* test=kunlun
5 years ago
wangguanzhong
d12aa4957f
remove alias for iou_similarity and ssd_loss ( #28742 )
5 years ago
Double_V
960135285b
fix pool APIs en doc, delete disable_static ( #28679 )
...
* fix pool exclusive and delete disable_static, test=develop
* fix pool1d exclusive, test=develop
* fix pool APIs en doc, test=document_fix
5 years ago
Wilber
60a5eb68a0
update paramattr doc. test=document_fix ( #28745 )
5 years ago
liym27
269470d62e
[Dynamic-to-Static] Remove unnecessary variables of the arguments in true_func/false_func ( #28722 )
5 years ago
danleifeng
7d32e100c5
upgrade to use paddle-2.0 API for sample code of paddle.t ( #28726 )
5 years ago
liym27
e5f0e6b003
[Dynamic-to-Static] Fix bug in loop_transformer: loop vars should contain the var from ancestor-for-node ( #28735 )
5 years ago
Wojciech Uss
04bcc13fac
Add multi_gru op and tests ( #28591 )
...
* Add multi_gru op and tests
* removed redundant disable_dygraph()
5 years ago
Wilber
fe2cf39f77
[2.0] Update py_func English doc. ( #28646 )
5 years ago
YUNSHEN XIE
16a808149a
modfied the timeout value for 5 ut ( #28714 )
...
* modfied the timeout value for 5 ut
* modified timeout value for test_resnet
5 years ago
liym27
9881738e13
[Dynamic-to-Static ErrorMessage] Support dy2stat error message when call jit.save and polish error message ( #28713 )
...
* Support dy2stat error message when call jit.save;
* Polish dy2stat error message:
(1) the original dygraph code is marked with (* user code *) ;
(2) "In user code:" -> "In transformed code:"
5 years ago
joejiong
32b90b1c2d
add log10 ( #28576 )
...
Add new operator log10
5 years ago
Shibo Tao
f0806bdaf2
fix save_inference_model and load_inference_mode alias. test=develop ( #28736 )
5 years ago
TeslaZhao
abbc507a81
Fix two english api documents, transpose and strided_slice ( #28687 )
...
* Fix two english api documents, transpose and strided_slice
* delete nouse comments
5 years ago
Zhou Wei
5562d8094f
fix API optimizer get_lr to support static graph mode ( #28681 )
...
* fix doc of save/load
* fix API optimizer get_lr
* fix API optimizer get_lr
5 years ago
furnace
caffa85ffe
add alias for fluid.initializer.set_global_initializer, alias is nn.initializer.set_global_initializer ( #28690 )
5 years ago
Shibo Tao
f096af83a0
fix document sample. test=develop ( #28721 )
5 years ago
Chen Weihang
3c5f2cac68
fix save parse error for dict input ( #28712 )
5 years ago
Huihuang Zheng
9ab335bbd9
Fix convert_call May be Called Multiple Times, test=develop ( #28710 )
...
Fix convert_callmMay be called multiple times in Dy2stat. Also strip some strings to make sure no influence from blank spaces.
5 years ago
wawltor
20b1276598
faster the compare ops dygraph model speed
...
faster the compare ops dygraph model speed
5 years ago
JZ-LIANG
5a9f6889c1
[Sharding] add new features ( #28568 )
...
* add lars to fleet meta optimizer
* add lamb to proto
* add lamb to fleet meta optimizer
* fixed syntax bug
* fixed syntax bug
* fixed syntax error in lamb, add config setter of lamb in distributed_strategy
* trigger unitest to rerun
* add new unitest func for lamb
* revise unitest for lars and lamb
* revise dgc meta unitest
* revise lars document in distribute_strategy
* revise lars lamb document in distributed_strategy.py
* revise lars lamb document in distributed_strategy.py
* add weight decay exclude logic to lars
* restore optimzier.py
* restore optimizer.py as develop except lars
* add epsilon and exclude fn to distributed_sttrategy
* add lars epsilon
* revise unitest for fleet lars and lamb
* revise lars lamb unitest for CI coverage
* revise lars argument api
* revise lars argument api
* revise lars argument api
* revise api doc of lars
* fix op role
* add sharding save and add_sync_comm_for_test function
* add comm_analyse to utlis
* revise sharding_utils
* add sharding saving unittest
* revise sharding utils for unittest
5 years ago
xiaoting
8c75b2554a
Support Tensor for attr_scale and attr_size ( #28677 )
...
* update interpolate, test=develop
* fix coverage, test=develop
5 years ago
YUNSHEN XIE
e880c90c5a
fix error when setting ut timeout value ( #28696 )
5 years ago
LielinJiang
01a14e1be2
Add with_pool args for vgg ( #28684 )
...
* add arg for vgg
5 years ago
LielinJiang
532e4bbf2a
fix docs ( #28683 )
5 years ago
Shibo Tao
db2e6cee62
add two paddle-2.0 apis: paddle.static.io.save_inference_model and paddle.static.io.load_inference_model ( #28606 )
...
* add two apis: paddle.static.io.save_inference_model and paddle.static.io.load_inference_mode, which are campatible with paddle.fluid.io.save_inference_model and paddle.fluid.io.load_inference_model respectively.
* add unittest for new save_inference_model and load_inference_model. test=develop
* enhance doc. test=develop
* add paddle.enable_static() to test_inference_model_io.py. test=develop
5 years ago
Chen Weihang
358d6bc90f
Fix test_weight_decay_extend random failed on windows ( #28643 )
...
* add debuging code
* change seed & add debug message
5 years ago
Bai Yifan
5050e761b8
Support user-defined activation/weight quantize and preprocess. ( #28570 )
...
* support user-defined quant and preprocess
5 years ago
Leo Chen
11e32baf1e
Add matmtl_v2 to amp list ( #28693 )
...
* add matmtl_v2 to amp list
* support dygraph
5 years ago
Huihuang Zheng
b6f86b8491
Fix Using "isinstance" in Loop, test=develop ( #28641 )
...
Fix a bug that used in PaddleGAN model which used `isinstance` in a for loop
5 years ago
lilong12
e4f9415338
update doc, test=document_fix ( #28498 )
5 years ago
Jacek Czaja
6d8d3d4c22
[oneDNN] Layer norm bf16 kernel ( #28619 )
5 years ago
LielinJiang
cdc4e6620d
fix lenet num classes ( #28642 )
5 years ago
wangchaochaohu
912a5c30b4
fix the matmul_v2 test for cuda11 ( #28635 )
5 years ago
littletomatodonkey
82f0b5ea5c
adapt pad const ( #28585 )
...
* adapt pad const
* fix comment and rm fluid import
* rm stdout
* fix note
5 years ago
Double_V
d71c3463b0
fix pool exclusive and delete disable_static ( #28655 )
...
* fix pool exclusive and delete disable_static, test=develop
* fix pool1d exclusive, test=develop
5 years ago
Aurelius84
8040fa2bca
Fix output dtype inconsistent with input ( #28649 )
...
* fix output dtyp inconsistent with input
* refine code
5 years ago
wangchaochaohu
68ee7f7312
fix overwrite for gather OP of API2.0( #28659 )
5 years ago
zhupengyang
2cd10fc465
fix 2.0 api docs ( #28445 )
5 years ago
Chen Weihang
a083c76ab4
adjust signal failed wait time ( #28640 )
5 years ago
Zhou Wei
361a53930f
fix doc of save/load ( #28645 )
5 years ago
cc
d1e84f3e9e
Add some ops for cacluating output scale, test=develop ( #28644 )
5 years ago
wawltor
8f2656ef5c
fix the gradient bug for the topk v2
...
fix the gradient bug for the topk v2
5 years ago
wangchaochaohu
a972c33fd7
refine gather OP performance for dynamic mode ( #28587 )
5 years ago
Kaipeng Deng
ece1e4cd9d
Add weighted random sampler ( #28545 )
...
* add WeightedRandomSampler. test=develop
5 years ago
joanna.wozna.intel
2cb71c0cde
Add checkpoint to quantize ( #28612 )
...
* Add checkpoint to quantize
* Change bfloat16 option
5 years ago
lidanqing
804271cff9
Op version python mkldnn_inplace test ( #28354 )
...
* add mkldnn inplace op version test
* update mkldnn_inplace fuse pass
* update the inplace test
5 years ago
pangyoki
72e068f1ba
fix test_multinomial ( #28558 )
...
* fix test_multinomial
* fix test_multinomial add 0 prob
5 years ago
Kaipeng Deng
89d27de90f
DataLoader support not auto collate batch ( #28425 )
...
* DataLoader support not auto collate batch. test=develop
5 years ago
Huihuang Zheng
c5c273c13e
[Dy2stat] Fix Using Tuple for Transpose in Dy2stat ( #28574 )
...
PaddleSeg uses tuple as parameter of transpose in dygraph code:
https://github.com/PaddlePaddle/PaddleSeg/blob/release/v0.7.0/dygraph/paddleseg/models/danet.py#L152
However, in dy2stat, static code doesn't support the perm as a tuple. This PR fixed it.
5 years ago
GaoWei8
2b1e7e5b02
Polish where english doc ( #28595 )
5 years ago
Guo Sheng
110febdc54
Fix gradients with ignore_idx in softmax_with_cross_entropy ( #28622 )
...
* Fix gradients with ignore_idx in softmax_with_cross_entropy.
test=develop
* Fix gradients with ignore_idx in softmax_with_cross_entropy on cpu.
Remove softmax_with_cross_entropy from op_threshold_white_list.
test=develop
* Fix test_softmax_cross_entropy_op.py.
test=develop
5 years ago
Guo Sheng
a3bc3bcd48
Fix scaled_params append error in AdamW. ( #28633 )
...
Fix no_grad setting in AdamW.
test=develop
5 years ago
YUNSHEN XIE
c4d22c845b
modified timeout value for some ut ( #28616 )
5 years ago
qingqing01
f7dd889ca4
Support squeezed label as input in paddle.metric.Accuracy ( #28535 )
...
* Support squeezed label as input in paddle.metric.Accuracy
* Revert cifar and fix UT
5 years ago
Wilber
8b97bb2e1f
Update cmake for arm ft and fix a bug for Predictor dtor. ( #28586 )
5 years ago
LielinJiang
1c3eef4cee
Fix vgg error when num_classes is given ( #28557 )
...
* fix vgg num classes
5 years ago
LielinJiang
1de3cdd0ab
Fix summary api for rnn gru lstm ( #28566 )
...
* fix summary for rnn gru lstm
5 years ago
danleifeng
a24d186814
fix nccl init failed in parallel dygraph mode ( #28497 )
5 years ago
Huihuang Zheng
1adc09b56a
Make Batch Size Smaller on Mac Because of CI Machine ( #28569 )
...
I found the unittest failed due to batch size. Maybe the reason is that our CI machine has limited memory. I decreased the batch size.
5 years ago
lilong12
ed9dd7c9f0
add send and recv ops ( #28590 )
...
* update, test=develop
5 years ago
LiuChiachi
5579edfb3c
save dtype of inputs ( #28301 )
5 years ago
Yang Zhang
c47bfe98cf
Reduce input data size for syncbn unit test by 8x ( #28571 )
...
this is a preemptive measure, the unit test was failing occasionally with
cudnn internal error
5 years ago
channings
c545b9b673
Add ONNX Exporter ( #27831 )
...
* add onnx export module, test=develop
* add unit test for paddle.onnx.export
* adjust api & doc
* fix some typo
5 years ago
Zhou Wei
bf6e7cba7a
updata 2.0 API english doc ( #28525 )
...
* make Numpy version is below 1.19.3
* fix 2.0 doc
5 years ago
Yang Zhang
614f20f6ba
Update `add` `clip` `MSELoss` and `no_grad` ( #28530 )
...
also fix `no_grad` alias
5 years ago
Shang Zhizhou
8699f38d08
裁剪transformer模型trt支持;修复tensorRT不支持DeletePass的bug ( #28517 )
...
* skip_layernorm_op done
* add unittest
* slice op convertor support trt < 6
* skip_layernorm only work in ernie
5 years ago
joejiong
08d2413142
add log2 operator ( #28319 )
...
As the title
5 years ago
lidanqing
0fc181dbd0
[Fix bug] If the pass name is not found, IsCompatible should return false ( #28475 )
5 years ago
Steffy-zxf
b258caf467
fix add_n doc (eng) ( #28464 )
...
fix the add_n english doc
5 years ago
Leo Chen
543ff333cd
Refine the format of printing tensor 3 (support scaler tensor) ( #28544 )
5 years ago
furnace
26d292b108
bugfix for api (mv, empty, empty_like op) ( #28513 )
5 years ago
YUNSHEN XIE
621b31c526
modified timeout value for test_resnet_v2 and test_resnet ( #28532 )
5 years ago
Kaipeng Deng
5305b2749a
deprecated APIs under paddle.dataset. test=develop ( #28423 )
5 years ago
liym27
0ce933a9ee
[API2.0] Fix documents of 6 APIs to fit API2.0: ( #28514 )
...
1. Remove 'fluid';
2. Variable -> Tensor
APIs:
sum, convert_call, convert_ifelse,
convert_logical_and, convert_logical_or, convert_logical_not
5 years ago
Huihuang Zheng
3b0d31ab89
Modify ProgramTranslator and TracedLayer Doc for API 2.0 ( #28509 )
...
Modify ProgramTranslator and TracedLayer Doc for API 2.0
5 years ago
Zhou Wei
c70c1c520d
make Numpy version is below 1.19.3 ( #28510 )
5 years ago
Huihuang Zheng
546b1c1dc4
Fix paddle.jit.dy2static.data_layer_not_check 2.0 API Doc ( #28461 )
...
Remove "fluid", "variable" in 2.0 API doc
5 years ago
yukavio
8f664a5c49
fix one_hot example code ( #28432 )
5 years ago
wangchaochaohu
241505c262
refine the doc for API2.0 ( #28386 )
5 years ago
YUNSHEN XIE
2159646796
modified timeout value for test_conv3d_mkldnn_op,test=document_fix ( #28496 )
5 years ago
Huihuang Zheng
eb0855615c
Set Exclusive for test_yolov3 to Avoid Memory Segmentation Fault in CI Random Failure ( #28485 )
...
As the title
5 years ago
YUNSHEN XIE
e1a5fc449d
fix ut exec timeout notest,test=kunlun ( #28495 )
...
* fix ut exec timeout notest,test=kunlun
* fix error for executing ut timeout,test=document_fix
5 years ago
YUNSHEN XIE
d3b2d07d6e
modified timeout value on windows ( #28499 )
...
* modified timeout value on windows
* fix some error
5 years ago
YUNSHEN XIE
1e698c600e
fix cmake error when setting ut timeout properity ( #28492 )
5 years ago
YUNSHEN XIE
faa6549877
setting timeout properity for test_flags_mkldnn_ops_on_off ( #28489 )
5 years ago
Tao Luo
7fd2077211
set NCCL_SHM_DISABLE=1 for test_parallel_executor_profilery.py ( #28484 )
5 years ago
smallv0221
4fa1d39205
Fix en doc for rnn.py. test=document_fix ( #28470 )
5 years ago
WangXi
18525d3635
fix Tanh remainder en doc ( #28455 )
5 years ago
wangchaochaohu
e14ed71cc2
refine the performance of gather Op ( #28458 )
5 years ago
YUNSHEN XIE
72c78e4dbb
exec ut no more than 15s 2 ( #28441 )
...
* exec ut no more than 15s 2
* fix for ut test_inplace_addto_strategy timeout
5 years ago
YUNSHEN XIE
ba0756325a
exec ut no more than 15s 1 ( #28439 )
...
* disable ut test_parallel_executor_fetch_isolated_var,test=document_fix
* test for limiting ut exec time as 15S
* fix an error caused by cannot find ut
* fix some error
* can not find test_transformer
* fix error caused by ut not run in windows
* fix error caused by Compiler Options
* fix error caused by setting timeout value as 15 in python/paddle/tests/CMakeLists.txt
* setting timeout value to 120s for old ut
* add the timeout value setting
* fix error caused by ut only run in coverage_ci
* add analyzer_transformer_profile_tester
* fix some error
* fix some error
* fix error with inference option
* fix error with inference option setting as ON_INFER
* add some ut to set timeout
* modified some option
* fix error
* fix some timeout error
* fix error
* fix error
* fix timeout for test_analyzer_bfloat16_resnet50
* fix error
* setting timeout properity for some ut
* first pr for new ut timeout as 15S
5 years ago
Chen Weihang
155b4f9b6c
Remove selected rows all reduce over height check ( #28460 )
...
* remove slelected rows all reduce over height check
* polish unittest
5 years ago
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'
5 years ago
Zhang Ting
7fe5f9ccad
Fix unittest random failure ( #28363 )
...
* fix random failure
* use two input(x)
* fix model
5 years ago
QingshuChen
6bba8e57b1
fix batch_norm_xpu bug & remove xpusimulator dependence ( #28430 )
...
*test=kunlun
5 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
5 years ago
Aurelius84
bd8dfe38ca
[Dy2Stat] Refine code example for 2.0 ( #28440 )
5 years ago
littletomatodonkey
f6834034cc
fix sample code ( #28446 )
5 years ago
zhupengyang
0155f91679
enable softmax unittest ( #28362 )
5 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
5 years ago
Jacek Czaja
ca41541472
[oneDNN]Sum bf16 kernel ( #28382 )
...
* - Added sum bf16 oneDNN
test=develop
* - Fix to UT of sum bf16
test=develop
5 years ago
LielinJiang
b89b4e321d
add fashion dataset ( #28411 )
5 years ago
Kaipeng Deng
463075a82b
add paddle.io.ComposeDataset & paddle.io.ChainDataset ( #28311 )
...
* add paddle.io.ComposeDataset & paddle.io.ChainDataset. test=develop
5 years ago
Qi Li
a4303496b2
[DOC] activation api doc, test=document_fix ( #28405 )
5 years ago
LielinJiang
3c95acc3eb
Remove cv2 dependence of normalize ( #28361 )
...
* rm cv2 dependence of normalize
5 years ago
Leo Chen
44a476c2ab
support cuda pinned place ( #28416 )
5 years ago
lidanqing
12b9587be5
Add conv_bias pass version python test ( #28278 )
...
* add conv_bias pass version test
* update according to reviews
5 years ago
Li Fuchen
f401907775
modified sample code of CTCLoss & ctc_loss by remove disable_static() & print([.*].numpy()) & alias, test=document_fix ( #28403 )
5 years ago
Kaipeng Deng
95b1868366
update DataLoader doc ( #28290 )
...
* update DataLoader doc. test=develop
5 years ago
Leo Chen
71d6220772
Skip reader op in mixed_precision decorator ( #28353 )
...
* skip reader op in mixed_precision decorator
* add ut
5 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
5 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
5 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
5 years ago
Jacek Czaja
84cc61b2cd
[oneDNN] sum op refactor ( #28318 )
5 years ago
Wilber
6f0f45f69c
copy_to_cpu support uint8 ( #28372 )
5 years ago
Wilber
09fd2b2aab
Paddle support compile on sw ( #27858 )
5 years ago
Double_V
17db031a05
fix pool bug, test=develop ( #28359 )
5 years ago
Leo Chen
6115c14fca
Pool2d cuda kernel supports fp16 ( #28316 )
...
* pool2d cuda kernel supports fp16
* fix compile issue of template
* add ut
5 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
5 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.
5 years ago
wangguanzhong
5262b02585
add generate_proposals_v2 op ( #28214 )
...
* add generate_proposals_v2 op
5 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
5 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
5 years ago
石晓伟
d9b5f1261c
update the version of pybind, test=develop ( #28284 )
...
* update version pybind to v2.4.3, test=develop
* update unittests, test=develop
5 years ago
Leo Chen
18c86fb2fb
hide some logs of p2p ( #28307 )
5 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
5 years ago
LielinJiang
fb1e0c93c9
Make vision datasets return PIL.Image as default ( #28264 )
...
* return pil image as default according backend
5 years ago
zhulei
26ede6e07e
Add median api. ( #28310 )
...
* Add median api.
* Add median api.
* Add median api.
* Add median api.
* Add median api.
5 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
5 years ago
joanna.wozna.intel
571a63e7ec
Add bf16 transpose2, reshape2, concat ops ( #28195 )
5 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
5 years ago
LielinJiang
0351168967
Fix lr scheduler step error in hapi when use static mode ( #28297 )
...
* fix lr scheduler
* fix code style
5 years ago
Leo Chen
8953038400
Fix transpose in conv cudnn kernel when addto enabled ( #28295 )
5 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
5 years ago
Zhong Hui
a98c69b6c6
fix dygraph gather api
...
fix dygraph gather api
5 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
5 years ago
Chengmo
4dc8c44ba1
【Paddle.Fleet】Fix fleetrun heter ( #28252 )
...
* fix fleetrun heter ps on paddlecloud
5 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
5 years ago
Zhou Wei
b63e0ccb4a
fix load check_point bug of LinearWarmup ( #28280 )
5 years ago
Jacek Czaja
c11d9b3035
[oneDNN ] conv2d fwd&bwd optimization ( #27871 )
5 years ago
LiuChiachi
d932b5618f
set random seed to in test_export_deploy_model ( #28274 )
5 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
5 years ago
Leo Chen
7fcb32ddf3
fill_constant op supports NINF ( #28270 )
5 years ago
wangchaochaohu
495a9ceb95
fix the input error of size Op ( #28272 )
5 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 )
5 years ago
Zhang Ting
fdc06f2158
add Fuse bn add act pass ( #28196 )
...
* add fuse_bn_add_act pass
5 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
5 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
5 years ago
Aurelius84
7a3a05cccb
[Dy2Stat]Support to save model with nested output ( #28224 )
5 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
5 years ago
Adam Osewski
7db747d9e8
oneDNN BatchNorm + Act fusion pass. ( #27912 )
5 years ago
Zhou Wei
fb7f85291b
fix print tensor place,add cpu/cuda/pin_memory API for Tensor ( #28200 )
5 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>
5 years ago
Leo Chen
f4f823c860
Refine the format of printing tensor 2 ( #28216 )
...
* refine format
* update doc
* handle uninitialized tensor
* add ut
5 years ago
tianshuo78520a
11089cacdb
Fix xpu notest ( #28204 )
...
* Fix xpu notest;test=kunlun
* fix
* test=kunlun
* test=kunlun
5 years ago
mapingshuo
81244fbfab
add sharding strategy in fleet( #27900 )
...
* add sharding
5 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.
5 years ago
WangXi
11acbfae06
refine auto strategy, test=document_fix ( #28211 )
5 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
5 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
5 years ago
Aurelius84
e730516090
[Dy2stat] Refine return mechanism in @to_static ( #28116 )
...
* remove some judgement
* fix len(outputs) == 1
5 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
5 years ago
Chen Weihang
5d73bfdb98
fix test_weight_decay_extend error ( #28178 )
5 years ago
lilong12
4873c20d74
modify ut cmakefile ( #28140 )
...
* modify ut cmakefile, test=develop
5 years ago
swtkiwi
e8db4412d0
delete matplotlib ( #28159 )
5 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
5 years ago
liu zhengxi
bc46069225
fix dynamic decode imperative ( #28160 )
5 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
5 years ago
wangguanzhong
5cd97a1cb0
support multiclass nms for multi-batch, test=develop ( #28154 )
5 years ago
李灿
085b9619f5
fix bugs test=develop ( #28125 )
5 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
5 years ago
lilong12
cd372447b9
disable test_dist_mnist_hallreduce, test=develop ( #28129 )
5 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
5 years ago
Leo Chen
a911c19eb0
fill_constant op supports NaN and Inf ( #28109 )
...
* fill_constant supports nan and inf
* add ut
5 years ago
LielinJiang
74c8a81127
Add pil backend for vision transforms ( #28035 )
...
* add pil backend
5 years ago
Aurelius84
135b62a4ec
[Dy2stat] Refine code of DygraphToStaticAst ( #28103 )
...
* refine code of DygraphToStaticAst
* add __init__ function
5 years ago
hong
5a589b2f86
reduce imperative ocr attention config; test=develop ( #28079 )
5 years ago
zhang wenhui
af70924061
fix test_group_norm_op_v2.py, test=develop ( #28104 )
5 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
5 years ago
hong
651dab4af6
Catch exception in download ( #28090 )
...
* cat exeception in request download; test=develop
* add re-try in download; test=develop
5 years ago
LielinJiang
8327accc58
Fix dataloader when stack input data with different type ( #27950 )
...
* fix dataloader
5 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
5 years ago
TeslaZhao
a5c95cd588
Add xpu transpose2 op.test=kunlun ( #28086 )
5 years ago
Kaipeng Deng
a5f65d516f
hapi/model step learning rate on batch end. ( #27991 )
...
* hapi/model step learning rate on batch end. test=develop
5 years ago
LutaoChu
c8d32c8c10
Fix diag OP bug on Windows Python3.8
...
Fix diag OP bug on Windows Python3.8 ,remove the std::min
5 years ago
MRXLT
55098b975e
fleet support paddle.optimzier ( #28026 )
...
fleet support paddle.optimzier
* bug fix
* fix fleet_base
* bug fix
* fix coverage
5 years ago
lilong12
5bb348a1c2
add doc for ReduceOp ( #28051 )
...
* add doc, test=document_fix
5 years ago
Zhou Wei
086b92df8f
fix optimizer init ( #27995 )
5 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
5 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.
5 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
5 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
5 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
5 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
5 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>
5 years ago
littletomatodonkey
2ed84a679d
Add API for pad op. ( #27943 )
...
* add pad apis
* rm pad2d test_layer
* fix code example
5 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
5 years ago
YUNSHEN XIE
bf5325f38f
disable test_lstm,test=document_fix ( #28030 )
...
* disable test_lstm,test=document_fix
* fix some error,test=document_fix
5 years ago
WangXi
fb641c915e
【paddle.fleet】fleet add _get_applied_meta_list and _get_applied_graph_list ( #27952 )
5 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
5 years ago
Leo Chen
78b1026fa3
fix random failure ( #27996 )
5 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
5 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
5 years ago
lilong12
ff0ebefc1e
put gloo initialization log to file ( #27969 )
...
* update, test=develop
5 years ago
chentianyu03
57a9c27248
change paddle.fluid.data to paddle.static.data in sample code ( #27992 )
5 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
5 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
5 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
5 years ago
chentianyu03
4aacacb4d6
change paddle.fluid.layers.fill_constant to paddle.full in sample codes ( #27993 )
5 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>
5 years ago
Steffy-zxf
832458d516
update code examples for paddle.sums
...
update code examples for paddle.sums
5 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
5 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
5 years ago
Zhou Wei
2ac6c6c3af
fix bug of tensor copy of CUDAPinnedPlace ( #27966 )
5 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
5 years ago
mapingshuo
5ccaaab8aa
reshape support bool, test=develop ( #27944 )
5 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
5 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
5 years ago
Zhou Wei
bf412f4665
add tensor clone ( #27953 )
...
* add tensor clone
* fix unittest test_var_base
5 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
5 years ago
Yiqun Liu
947b75284f
Reimplement paddle.utils.install_check. ( #27771 )
5 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
5 years ago
Kaipeng Deng
d17681dcc7
fix DataLoader single process mode exit SIGABRT error. ( #27850 )
...
* fix DataLoader single process mode exit SIGABRT error. test=develop
5 years ago
tianshuo78520a
7750844f33
fix norm code format error ( #27955 )
5 years ago
furnace
d998ed0ce3
bugfix for docs of paddle.nn.Assign API ( #27927 )
5 years ago
ceci3
338c76564a
update syncbn docs, test=document_fix ( #27948 )
5 years ago
guofei
6bbb6e7f45
Implement the function of OutScaleForTraining/OutScaleForInference in dygraph ( #26601 )
...
* Implement the function of OueScaleForTraining/OutScaleForInference in dygraph
test=develop
5 years ago
LielinJiang
0140d74e23
Fix load pretrained model in hapi ( #27893 )
...
* fix hapi load
5 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
5 years ago
pangyoki
6e5034e248
fix test directory migration ( #27885 )
...
* fix test directory migration
* change assert to self.assertXXX
5 years ago
Leo Chen
9a2a4b5f65
Support setting xpu place in dygraph mode ( #27909 )
...
* support setting xpu place
* add ut, test=kunlun
5 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
5 years ago
MRXLT
263a9e97fd
Fix adam ( #27778 )
...
* fix adam
* fix gpu adam
* fix code style
* fix ut
* update ut add cuda code
5 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
5 years ago
zhang wenhui
82eb486edd
fix test_group_norm, test=develop ( #27929 )
5 years ago
qingqing01
766b351527
Remove paddle.metric.auc in 2.0 API ( #27851 )
5 years ago
wawltor
ff8922f9f2
fix the dataset remove bug for the dataset
...
fix the dataset remove bug for the dataset
5 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
5 years ago
Leo Chen
ae6ad23c3c
Refine tensor to_string ( #27925 )
...
* refine to_string
* re-enable ut
5 years ago
ruri
8b307042ba
[API2.0]remove image_resize series api in Paddle2.0 ( #27886 )
...
* remove image_resize series api in Paddle2.0
5 years ago
wangchaochaohu
c5fcc96d5b
xpu support for fill_constant Op ( #27675 )
5 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
5 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
5 years ago
Chengmo
328cb289ed
【paddle.fleet】fix sparse load ( #27680 )
...
* add sparse tensor load method
5 years ago
furnace
8e70b18e6c
add paddle.nn.initializer API, including: Normal, TruncatedNormal, Uniform, XavierNormal, XavierUniform, Assign ( #27769 )
5 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
5 years ago
MRXLT
b19b01af18
add dygraph code for unstack ( #27881 )
5 years ago
QingshuChen
2712d07644
support kunlun matmul_v2 ( #27910 )
...
*test=kunlun
5 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
5 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
5 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
5 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
5 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
5 years ago
Yiqun Liu
b301adc98b
Update all the examples which use paddle.static.nn.fc. ( #27904 )
5 years ago
Chen Weihang
ed31dac6eb
remove scale loss and coll grads, test=document_fix ( #27874 )
5 years ago
YUNSHEN XIE
6898746f1d
disable ut ( #27913 )
5 years ago
zhulei
62556d5e74
Add api of KaimingUniform & KaimingNormal in paddle.nn.initializer ( #27811 )
...
Add api of KaimingUniform & KaimingNormal in paddle.nn.initializer
5 years ago
hutuxian
3f2a6ab65d
fix error msg ( #27887 )
5 years ago
Huihuang Zheng
426de255ea
Refine Executor API English Doc for 2.0rc ( #27857 )
...
As the title
5 years ago
Huihuang Zheng
9b3b3b74a7
Refine ParallelExecutor English Doc for 2.0RC ( #27862 )
...
As the title
5 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
5 years ago
WangXi
50619cd842
use floyd algorithm to find meta optimizer max path, test=develop ( #27867 )
5 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
5 years ago
Chengmo
1607e87cb9
add xpu sgd & momentum ( #27728 )
...
* add xpu sgd & momentum
5 years ago
smallv0221
1b48f2f751
Fix en doc for rnn.py. test=document_fix ( #27835 )
...
* Fix en doc for rnn.py. test=document_fix
5 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
5 years ago
hong19860320
c90d35564b
Add batch_norm and layer_norm XPU kernels ( #27818 )
5 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
5 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
5 years ago
Bai Yifan
1b1217732e
fix deform_conv2d doc, test=document_fix ( #27873 )
5 years ago
Huihuang Zheng
914558049f
Refine ProgramTranslator API English Doc for 2.0rc ( #27849 )
...
As the title
5 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
5 years ago
mapingshuo
8d2cb14f98
support gradient merge with recompute, test=develop ( #27834 )
...
* support gradient merge with recompute, test=develop
test=develop
5 years ago
QingshuChen
79b5db135e
bug: fix mul unitest bug ( #27852 )
...
*test=kunlun
5 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
5 years ago
Chengmo
9637d963f7
update index sample ( #27839 )
...
* update index sample
5 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
5 years ago
wangxinxin08
e6a4d1705a
modify dtype in doublegrad matmul ut ( #27868 )
5 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
5 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)
5 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
5 years ago
Steffy-zxf
9215ad96ca
Update code examples for api2.0
...
Update code examples for api2.0
5 years ago
Peihan
af57537ec7
remove dy2static test_lac predictor run case ( #27844 )
...
* remove test_lac predictor run case
5 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
5 years ago
Kaipeng Deng
445634fa8b
polish Return doc of DataLoader ( #27808 )
...
* polish Return doc of DataLoader. test=develop
5 years ago
Bai Yifan
6cdf2c9604
mig deformable_conv to deform_conv2d ( #27841 )
...
* mig deformable_conv to deform_conv2d
5 years ago
Huihuang Zheng
e388e60312
Refine cond API English Doc for 2.0RC ( #27708 )
...
As the title
5 years ago
guofei
2e1bca99ca
Refine the gradient calculation errors caused by renaming in while_grad ( #27814 )
...
test=develop
5 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
5 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
5 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
5 years ago
joejiong
2bcb7c0a2f
Mutiply allows non-tensor data input ( #27690 )
...
Mutiply allows non-tensor data input
5 years ago
Jacek Czaja
55e63763ec
[oneDNN] adaptive pool support ( #27747 )
5 years ago
chen zhiyu
6335e6a0a6
add musl option ( #27798 )
5 years ago
GaoWei8
36bb056ed6
Add flattern weight of lstm ( #27192 )
...
* add flattern weight of lstm
5 years ago
zhupengyang
659d04df2c
hsigmoid -> hsigmoid_loss/HSigmoidLoss; refine docs ( #27745 )
5 years ago
LiuChiachi
b84d4ae31c
Fix bug of Model.save ( #27815 )
...
* fix model bugs, inputs can be InputSpec instance
* correct error message
5 years ago
hong19860320
f3e2580cf0
Fix the param of swish ( #27824 )
5 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
5 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.
5 years ago
LielinJiang
4676f03cbb
fix summary ( #27820 )
5 years ago
mapingshuo
840d54de9b
add XPU support for shape op and reshape op ( #27804 )
5 years ago
WangXi
0a1862d1d2
fleet combine amp dgc recompute meta optimizer ( #27643 )
5 years ago
cc
8fabb1c32f
Add test attribute in channelwise_quant op, test=develop ( #27742 )
...
* Add test attribute in channelwise_quant op, test=develop
5 years ago
tianshuo78520a
81d3992c47
Fix docker build error ( #27735 )
5 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
5 years ago
hong19860320
74d3a55072
Add Swish and ThresholdedReLU for API 2.0 ( #27758 )
5 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
5 years ago
Wilber
c425cf1822
[API 2.0]Update 2.0 api from fluid to paddle ( #27802 )
5 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.
5 years ago
zhupengyang
0025e0d87b
refine APIs: brelu, hardsigmoid, hardswish, maxout ( #27658 )
5 years ago
zhupengyang
5098891fdf
add softmax xpu kernel ( #27700 )
5 years ago
Leo Chen
65c06141b6
disable_fuse_all_reduce ( #27746 )
...
* disable_fuse_all_reduce
* fix test
* fix ut
5 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
5 years ago
石晓伟
0d27591642
save operator version infomation to program desc, test=develop ( #27668 )
5 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
5 years ago
Li Fuchen
c4b1faa469
modified sample code of add_position_encoding to use paddle.randn, test=document_fix ( #27679 )
5 years ago
LielinJiang
d3b98f0d84
Fix dynamic parallel train mode for hapi ( #27787 )
...
* fix dynamic parallel for hapi
* fix code style
5 years ago
LutaoChu
b53970ee36
Fix cross, cumsum op docs test=document_fix
...
Fix cross, cumsum op docs
5 years ago
Feiyu Chan
c52b6bbfa9
add alias for RNN APIs from paddle.nn.layer.rnn explicitly ( #27784 )
5 years ago
Yiqun Liu
836ee3b0c8
Polish the english documentation and example of paddle.nn.Linear and paddle.nn.functional.linear ( #27759 )
5 years ago
liu zhengxi
061240b34a
remove beam_search and beam_search_decode api in paddle.nn ( #27660 )
5 years ago
zhupengyang
395cb561aa
refine logsumexp error message and docs ( #27713 )
5 years ago
Jacek Czaja
606611d351
[oneDNN] GRU BF16 kernel ( #27731 )
5 years ago
gongweibao
baddedfdf1
fix ut test=develop ( #27760 )
5 years ago
zhulei
6da552a22f
Update initializer examples of Bilinear ( #27709 )
5 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
5 years ago
Qi Li
994438b109
change clip grad api, test=develop ( #27767 )
5 years ago
LielinJiang
d84eb9b33f
keep network mode unchange when use summary api ( #27754 )
...
* keep summary mode unchange
* add no grad decorator
5 years ago
LielinJiang
b9c7c66ea5
add type promotion ( #27756 )
5 years ago
LielinJiang
9089841b6e
Fix bilateral inference shape bug ( #26822 )
...
* fix bilateral bug
5 years ago
wanghuancoder
6076d0a5df
modify doc for bilinear_tensor_product, test=develop ( #27613 )
5 years ago
Chen Weihang
bcc34724c2
polish api code & example ( #27696 )
5 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
5 years ago
wanghuancoder
aaa3ee65e4
modify doc for unique_name.guard unique_name.generate unique_name.switch, test=develop ( #27605 )
5 years ago