Chen Weihang
0d1900d329
add debug msg for test_buffer_shared_memory_reuse_pass ( #29151 )
4 years ago
guofei
638402274a
Integrate ImperativeOutScale into ImperativeQuantAware. ( #27956 )
...
* Optimiz the unittest test_imperative_out_scale
test=develop
4 years ago
Shang Zhizhou
b9e76a0103
detect tensorRT plugin fp16 in runtime ( #27933 )
...
* remove -DSUPPORTS_CUDA_FP16 in cuda.cmake
* comile with cuda9
* add some unittest
* notest;test=coverage
* add unittest for trt plugin swish && split
* update ernie unittest
* fix some error message
* remove repeated judgement of CUDA version in mbEltwiseLayerNormOpConverter
* fix comile errror when CUDA_ARCH_NAME < Pascal"
* fix comile error
* update unittest timeout
* compile with cuda9
* update error msg
* fix code style
* add some comments
* add define IF_CUDA_ARCH_SUPPORT_FP16
* rename IF_CUDA_ARCH_SUPPORT_FP16 to CUDA_ARCH_FP16_SUPPORTED
4 years ago
Chen Weihang
c39da29db7
Add symlink force for unittest test_static_save_load ( #29137 )
...
* add symlink force for unittest
* open unittest
4 years ago
xiaoting
9cc0e72619
Fix interpolate doc ( #29104 )
...
* fix interpolate example, test=develop;test=document_fix
* fix format, test=develop, test=document_fix
* update upsample doc, test=develop, test=document_fix
4 years ago
whs
9b39af3f22
Fix docs in 2.0 API ( #29081 )
...
* 1. grid_sample
1.1 fix has_print
2. conv1d_transpose
2.1 fix code_example error
3. conv1d
4. affine_grid
4.1 has_print
4.2 has_disable_static
5. Conv1DTranspose
5.1 fix code_example error
5.2 has_disable_static
6. Conv1d
6.1 code_example
6.2 has_disable_static
4 years ago
Guanghua Yu
bb64efb1d0
fix softmax_with_cross_entropy api en docs ( #29116 )
4 years ago
Chen Weihang
0dfb81614b
polish static save load doc, test=document_fix ( #29115 )
4 years ago
Chen Weihang
95a0f87b44
support jit.save datra parallel ( #29135 )
4 years ago
lilong12
449903dead
add paddle.broadcast_to api which is a alias of paddle.expand ( #28706 )
...
* update, test=develop
4 years ago
Noel
da71173bc9
Fix ops doc for some ops
...
Fix ops doc for some ops
4 years ago
Leo Chen
770395cb93
Split train_mode and has_grad for tracer ( #29064 )
...
* split train_mode and has_grad
* fix format
* fix ci problems
* fix sample code
4 years ago
ShenLiang
cddc70964d
fix InMemoryDataset doc ( #28688 )
...
* add Inmemorydataset
4 years ago
ShenLiang
bb5f8e3575
fix doc of data,matmul,dot,cholesky,scatter,divide,remainder,inverse,sign ( #28665 )
4 years ago
yukavio
29b5050726
Revert "add hapi api flops ( #28755 )" ( #29144 )
...
This reverts commit 63e90ee331
.
4 years ago
Aurelius84
cc92b27d4e
Add prettytable in unittest/requirements.txt ( #29147 )
4 years ago
YUNSHEN XIE
27d04a3b1f
disable ut test_static_save_load ( #29119 )
4 years ago
JZ-LIANG
0dadacc4eb
[sharding] doc, api, bug fixed ( #28983 )
...
* 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
* revise sharding en doc
* update sharding utils api
* add doc for sharding
* fixed bug in sharding var size count
* update varsize count in sharding
* fix sharding num_nccl_comm
* Revert "fix sharding num_nccl_comm"
This reverts commit d51587c15e9323acf226ddd36154275f0d1daf76.
4 years ago
lilong12
2a864c70c4
fix the bug in gloo ( #29112 )
...
* update, test=develop
4 years ago
whs
7de2db4a81
Fix grid_sample in cudnn mode ( #29124 )
4 years ago
Yanghello
dd41775059
fix crypto ut test error for windows ci ( #29090 )
4 years ago
Chen Weihang
d0129fcd88
Add static_only decorator for static apis ( #29015 )
...
* add static_only for static api
* addd static_only for class init
* remove static_only for default_main_program
* remove creater_parameter & startup_program
* remove failed apis
* revert py_func import
* remove global scope
* remove some api
* remove cuda pinned place
4 years ago
WangXi
e931c7baf9
Fix multi nccl comm & wait server ready ( #28663 )
4 years ago
ceci3
e7caf3b8d9
fix examples, test=document_fix ( #29019 )
...
* fix examples, test=document_fix
* fix, test=document_fix
4 years ago
Shibo Tao
db41258501
add API serialize_program, serialize_persistables, save_to_file, deserialize_program, deserialize_persistables, load_from_file. ( #29034 )
4 years ago
Aurelius84
14013a2eba
Remove prettytable in requirements.txt ( #29100 )
4 years ago
Kaipeng Deng
b052149dcf
remove BatchSampler type check ( #29114 )
...
* remove BatchSampler type check. test=develop
4 years ago
yukavio
63e90ee331
add hapi api flops ( #28755 )
...
* add hapi api flops
* fix bug
* fix some bug
* add unit test
* fix unit test
* solve ci coverage
* fix doc
* fix doc
* fix static flops
* delete the comment
* fix some grammar problem in doc
* fix some bug
* fix some doc
* fix some doc
4 years ago
hutuxian
db85f4cf8f
Add dygraph implementation for multiplex op ( #29049 )
4 years ago
joanna.wozna.intel
b0d1ac161e
Add bf16 pool2d and unify bf16 unit tests ( #29039 )
...
* Add bf16 pool2d and unify bf16 unit tests
* Add change default ops test
4 years ago
gongweibao
1358397e97
Clean up the redundant files and unify the launch interface. ( #28928 )
4 years ago
Guanghua Yu
47af5c3c9d
fix smooth_l1_loss en docs ( #29093 )
4 years ago
LielinJiang
6951052431
add default conv init ( #29092 )
4 years ago
Chen Weihang
fea0e294ee
Hide the C++ stack by default and add hints ( #29042 )
...
* default not show cpp statck & add hint
* fix failed unittest
* fix failed unittests
4 years ago
Yiqun Liu
eb9ae55849
Optimize the performance of piecewise_decay. ( #29077 )
4 years ago
qingqing01
8bbedc2371
Fix doc format for callbacks, metrics and Model ( #28638 )
...
* Fix doc format for callbacks, metrics and Model
* Fix code sample and doc
4 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
4 years ago
GaoWei8
a049dff78f
Modify the default setting of softmax cudnn ( #28672 )
4 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
4 years ago
ceci3
a3faa520ec
Fix syncbn ( #29013 )
...
* fix syncbn
* add unittest
4 years ago
joejiong
582c0a0468
add uint8 for reshape op ( #28996 )
...
add uint8 for reshape operator
4 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
4 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
4 years ago
Zhou Wei
8ca0a8a859
fix tensor detach to zero copy ( #27921 )
...
* fix tensor detach to zero copy
* fix tensor detach to zero copy
4 years ago
GaoWei8
13828db313
Add reminder of fluid.layers.lstm ( #28964 )
...
* add reminder of fluid.layers.lstm
4 years ago
Aurelius84
8af0d85ea4
fix unittest failed on windows GPU ( #29072 )
4 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
4 years ago
taixiurong
a5aa4dc7a9
add xpu elementwise ops ( #29031 )
4 years ago
tianshuo78520a
e9acd9c941
Update CI Python3 Docker for Cuda11 ( #28401 )
4 years ago
joejiong
b04c78ef5e
Update pow ( #29000 )
...
Simple code clean up
4 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.
4 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
4 years ago
joejiong
4b05a8be88
delete axis parameter in multiply api ( #28647 )
...
As the title
4 years ago
YUNSHEN XIE
c098a2e159
fixing cmake error for WITH_GPU=ON and WITH_DISTRIBUTE=OFF ( #29030 )
4 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
4 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
4 years ago
ysh329
9a475582e0
fix clip by norm EN doc. test=develop ( #28994 )
...
* fix clip by norm eng doc. test=develop
4 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)
4 years ago
YUNSHEN XIE
5cb8e17a18
restore timeout value ( #29027 )
4 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
4 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 '''
4 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.
4 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.
4 years ago
LielinJiang
982fd0f3c2
fix mnist fmnist ( #29018 )
4 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
4 years ago
smallv0221
83cee3c9d7
Delete mq2007 dataset. ( #28995 )
...
* Fix en doc for rnn.py. test=document_fix
* Delete mq2007 dataset.
4 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
4 years ago
123malin
fbf9564f6b
【paddle.distributed.fleet】Optimize ParameterServer's Async Mode ( #28442 )
...
* test=develop, optimize global_step
4 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
4 years ago
lilong12
f77a78cdee
enable pipeline to run with Executor.run() ( #28373 )
...
* update, test=develop
4 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
4 years ago
joejiong
4e00c095fa
fix warning in english doc ( #28981 )
4 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
4 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
4 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>
4 years ago
Chen Weihang
768dab441e
polish two api doc detail, test=document_fix ( #28971 )
4 years ago
Chen Weihang
7c7cdf082f
remove fluid & variable in program ( #28966 )
4 years ago
furnace
8ff3550658
refactor momentum op to combine weight ( #27414 )
...
* refactor momentum op to combine weight_decay (scale op and sum op)
4 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 )
4 years ago
Zhang Ting
3416c35996
refine doc of default_startup_program, test=document_fix ( #28951 )
4 years ago
Zhang Ting
842fd2933c
remove fluid in default_main_program doc, test=document_fix ( #28941 )
4 years ago
Zhang Ting
b5218227d6
refine the doc of dist op, test=document_fix ( #28947 )
4 years ago
LielinJiang
8f8a02fda4
Optimize conv performance ( #28766 )
...
* optimize conv performance
4 years ago
LielinJiang
00e55ded4a
Add lr scheduler callback for high level api ( #28737 )
...
* add lr scheduler
4 years ago
yaoxuefeng
6369463a5d
fix test datagenerator ut fail ( #28767 )
4 years ago
Kaipeng Deng
ed7aa8f9c3
Fix conv transpose ( #28629 )
...
* fix conv_transpose unittest. test=develop
4 years ago
Chen Weihang
bff4179cc7
lazily init global group in collective ( #28780 )
4 years ago
gongweibao
1dad8ceaab
Fix gpu memory allocation bug. ( #28703 )
4 years ago
Kaipeng Deng
91bab752a9
fix dataloader default value and doc ( #28728 )
...
* fix dataloader. test=develop
4 years ago
Chen Weihang
0ed80e09fc
Fix param base trainable set failed ( #28756 )
...
* fix param base trainable set failed
* add unittest
* fix typo
* polish comment
4 years ago
Aurelius84
d6aee7597c
[Dy2Stat]Set buff.persistable=False when it's not initialized ( #28749 )
4 years ago
joejiong
1a532d5133
add uint8 support for squeeze operator ( #28734 )
...
Adding uint8 support for squeeze operator.
4 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>
4 years ago
Bai Yifan
655d5eb1db
fix code example ( #28636 )
...
* fix code example, test=document_fix
4 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
4 years ago
Zhou Wei
3b0dd5f620
fix bug that to_tensor not support paddle.Place ( #28717 )
4 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
4 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
4 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>
4 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
4 years ago
wangguanzhong
d12aa4957f
remove alias for iou_similarity and ssd_loss ( #28742 )
4 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
4 years ago
Wilber
60a5eb68a0
update paramattr doc. test=document_fix ( #28745 )
4 years ago
liym27
269470d62e
[Dynamic-to-Static] Remove unnecessary variables of the arguments in true_func/false_func ( #28722 )
4 years ago
danleifeng
7d32e100c5
upgrade to use paddle-2.0 API for sample code of paddle.t ( #28726 )
4 years ago
liym27
e5f0e6b003
[Dynamic-to-Static] Fix bug in loop_transformer: loop vars should contain the var from ancestor-for-node ( #28735 )
4 years ago
Wojciech Uss
04bcc13fac
Add multi_gru op and tests ( #28591 )
...
* Add multi_gru op and tests
* removed redundant disable_dygraph()
4 years ago
Wilber
fe2cf39f77
[2.0] Update py_func English doc. ( #28646 )
4 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
4 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:"
4 years ago
joejiong
32b90b1c2d
add log10 ( #28576 )
...
Add new operator log10
4 years ago
Shibo Tao
f0806bdaf2
fix save_inference_model and load_inference_mode alias. test=develop ( #28736 )
4 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
4 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
4 years ago
furnace
caffa85ffe
add alias for fluid.initializer.set_global_initializer, alias is nn.initializer.set_global_initializer ( #28690 )
4 years ago
Shibo Tao
f096af83a0
fix document sample. test=develop ( #28721 )
4 years ago
Chen Weihang
3c5f2cac68
fix save parse error for dict input ( #28712 )
4 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.
4 years ago
wawltor
20b1276598
faster the compare ops dygraph model speed
...
faster the compare ops dygraph model speed
4 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
4 years ago
xiaoting
8c75b2554a
Support Tensor for attr_scale and attr_size ( #28677 )
...
* update interpolate, test=develop
* fix coverage, test=develop
4 years ago
YUNSHEN XIE
e880c90c5a
fix error when setting ut timeout value ( #28696 )
4 years ago
LielinJiang
01a14e1be2
Add with_pool args for vgg ( #28684 )
...
* add arg for vgg
4 years ago
LielinJiang
532e4bbf2a
fix docs ( #28683 )
4 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
4 years ago
Chen Weihang
358d6bc90f
Fix test_weight_decay_extend random failed on windows ( #28643 )
...
* add debuging code
* change seed & add debug message
4 years ago
Bai Yifan
5050e761b8
Support user-defined activation/weight quantize and preprocess. ( #28570 )
...
* support user-defined quant and preprocess
4 years ago
Leo Chen
11e32baf1e
Add matmtl_v2 to amp list ( #28693 )
...
* add matmtl_v2 to amp list
* support dygraph
4 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
4 years ago
lilong12
e4f9415338
update doc, test=document_fix ( #28498 )
4 years ago
Jacek Czaja
6d8d3d4c22
[oneDNN] Layer norm bf16 kernel ( #28619 )
4 years ago
LielinJiang
cdc4e6620d
fix lenet num classes ( #28642 )
4 years ago
wangchaochaohu
912a5c30b4
fix the matmul_v2 test for cuda11 ( #28635 )
4 years ago
littletomatodonkey
82f0b5ea5c
adapt pad const ( #28585 )
...
* adapt pad const
* fix comment and rm fluid import
* rm stdout
* fix note
4 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
4 years ago
Aurelius84
8040fa2bca
Fix output dtype inconsistent with input ( #28649 )
...
* fix output dtyp inconsistent with input
* refine code
4 years ago
wangchaochaohu
68ee7f7312
fix overwrite for gather OP of API2.0( #28659 )
4 years ago
zhupengyang
2cd10fc465
fix 2.0 api docs ( #28445 )
4 years ago
Chen Weihang
a083c76ab4
adjust signal failed wait time ( #28640 )
4 years ago
Zhou Wei
361a53930f
fix doc of save/load ( #28645 )
4 years ago
cc
d1e84f3e9e
Add some ops for cacluating output scale, test=develop ( #28644 )
4 years ago
wawltor
8f2656ef5c
fix the gradient bug for the topk v2
...
fix the gradient bug for the topk v2
4 years ago
wangchaochaohu
a972c33fd7
refine gather OP performance for dynamic mode ( #28587 )
4 years ago
Kaipeng Deng
ece1e4cd9d
Add weighted random sampler ( #28545 )
...
* add WeightedRandomSampler. test=develop
4 years ago
joanna.wozna.intel
2cb71c0cde
Add checkpoint to quantize ( #28612 )
...
* Add checkpoint to quantize
* Change bfloat16 option
4 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
4 years ago
pangyoki
72e068f1ba
fix test_multinomial ( #28558 )
...
* fix test_multinomial
* fix test_multinomial add 0 prob
4 years ago
Kaipeng Deng
89d27de90f
DataLoader support not auto collate batch ( #28425 )
...
* DataLoader support not auto collate batch. test=develop
4 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.
4 years ago
GaoWei8
2b1e7e5b02
Polish where english doc ( #28595 )
4 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
4 years ago
Guo Sheng
a3bc3bcd48
Fix scaled_params append error in AdamW. ( #28633 )
...
Fix no_grad setting in AdamW.
test=develop
4 years ago
YUNSHEN XIE
c4d22c845b
modified timeout value for some ut ( #28616 )
4 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
4 years ago
Wilber
8b97bb2e1f
Update cmake for arm ft and fix a bug for Predictor dtor. ( #28586 )
4 years ago
LielinJiang
1c3eef4cee
Fix vgg error when num_classes is given ( #28557 )
...
* fix vgg num classes
4 years ago
LielinJiang
1de3cdd0ab
Fix summary api for rnn gru lstm ( #28566 )
...
* fix summary for rnn gru lstm
4 years ago
danleifeng
a24d186814
fix nccl init failed in parallel dygraph mode ( #28497 )
4 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.
4 years ago
lilong12
ed9dd7c9f0
add send and recv ops ( #28590 )
...
* update, test=develop
4 years ago
LiuChiachi
5579edfb3c
save dtype of inputs ( #28301 )
4 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
4 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
4 years ago
Zhou Wei
bf6e7cba7a
updata 2.0 API english doc ( #28525 )
...
* make Numpy version is below 1.19.3
* fix 2.0 doc
4 years ago
Yang Zhang
614f20f6ba
Update `add` `clip` `MSELoss` and `no_grad` ( #28530 )
...
also fix `no_grad` alias
4 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
4 years ago
joejiong
08d2413142
add log2 operator ( #28319 )
...
As the title
4 years ago
lidanqing
0fc181dbd0
[Fix bug] If the pass name is not found, IsCompatible should return false ( #28475 )
4 years ago
Steffy-zxf
b258caf467
fix add_n doc (eng) ( #28464 )
...
fix the add_n english doc
4 years ago
Leo Chen
543ff333cd
Refine the format of printing tensor 3 (support scaler tensor) ( #28544 )
4 years ago
furnace
26d292b108
bugfix for api (mv, empty, empty_like op) ( #28513 )
4 years ago
YUNSHEN XIE
621b31c526
modified timeout value for test_resnet_v2 and test_resnet ( #28532 )
4 years ago
Kaipeng Deng
5305b2749a
deprecated APIs under paddle.dataset. test=develop ( #28423 )
4 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
4 years ago
Huihuang Zheng
3b0d31ab89
Modify ProgramTranslator and TracedLayer Doc for API 2.0 ( #28509 )
...
Modify ProgramTranslator and TracedLayer Doc for API 2.0
4 years ago
Zhou Wei
c70c1c520d
make Numpy version is below 1.19.3 ( #28510 )
4 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
4 years ago
yukavio
8f664a5c49
fix one_hot example code ( #28432 )
4 years ago
wangchaochaohu
241505c262
refine the doc for API2.0 ( #28386 )
4 years ago
YUNSHEN XIE
2159646796
modified timeout value for test_conv3d_mkldnn_op,test=document_fix ( #28496 )
4 years ago
Huihuang Zheng
eb0855615c
Set Exclusive for test_yolov3 to Avoid Memory Segmentation Fault in CI Random Failure ( #28485 )
...
As the title
4 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
4 years ago
YUNSHEN XIE
d3b2d07d6e
modified timeout value on windows ( #28499 )
...
* modified timeout value on windows
* fix some error
4 years ago
YUNSHEN XIE
1e698c600e
fix cmake error when setting ut timeout properity ( #28492 )
4 years ago
YUNSHEN XIE
faa6549877
setting timeout properity for test_flags_mkldnn_ops_on_off ( #28489 )
4 years ago
Tao Luo
7fd2077211
set NCCL_SHM_DISABLE=1 for test_parallel_executor_profilery.py ( #28484 )
4 years ago
smallv0221
4fa1d39205
Fix en doc for rnn.py. test=document_fix ( #28470 )
4 years ago
WangXi
18525d3635
fix Tanh remainder en doc ( #28455 )
4 years ago
wangchaochaohu
e14ed71cc2
refine the performance of gather Op ( #28458 )
4 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
4 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
4 years ago
Chen Weihang
155b4f9b6c
Remove selected rows all reduce over height check ( #28460 )
...
* remove slelected rows all reduce over height check
* polish unittest
4 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'
4 years ago
Zhang Ting
7fe5f9ccad
Fix unittest random failure ( #28363 )
...
* fix random failure
* use two input(x)
* fix model
4 years ago
QingshuChen
6bba8e57b1
fix batch_norm_xpu bug & remove xpusimulator dependence ( #28430 )
...
*test=kunlun
4 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
4 years ago
Aurelius84
bd8dfe38ca
[Dy2Stat] Refine code example for 2.0 ( #28440 )
4 years ago
littletomatodonkey
f6834034cc
fix sample code ( #28446 )
4 years ago
zhupengyang
0155f91679
enable softmax unittest ( #28362 )
4 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
4 years ago
Jacek Czaja
ca41541472
[oneDNN]Sum bf16 kernel ( #28382 )
...
* - Added sum bf16 oneDNN
test=develop
* - Fix to UT of sum bf16
test=develop
4 years ago
LielinJiang
b89b4e321d
add fashion dataset ( #28411 )
4 years ago
Kaipeng Deng
463075a82b
add paddle.io.ComposeDataset & paddle.io.ChainDataset ( #28311 )
...
* add paddle.io.ComposeDataset & paddle.io.ChainDataset. test=develop
4 years ago
Qi Li
a4303496b2
[DOC] activation api doc, test=document_fix ( #28405 )
4 years ago
LielinJiang
3c95acc3eb
Remove cv2 dependence of normalize ( #28361 )
...
* rm cv2 dependence of normalize
4 years ago
Leo Chen
44a476c2ab
support cuda pinned place ( #28416 )
4 years ago
lidanqing
12b9587be5
Add conv_bias pass version python test ( #28278 )
...
* add conv_bias pass version test
* update according to reviews
4 years ago
Li Fuchen
f401907775
modified sample code of CTCLoss & ctc_loss by remove disable_static() & print([.*].numpy()) & alias, test=document_fix ( #28403 )
4 years ago
Kaipeng Deng
95b1868366
update DataLoader doc ( #28290 )
...
* update DataLoader doc. test=develop
4 years ago
Leo Chen
71d6220772
Skip reader op in mixed_precision decorator ( #28353 )
...
* skip reader op in mixed_precision decorator
* add ut
4 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
4 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
4 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
4 years ago
Jacek Czaja
84cc61b2cd
[oneDNN] sum op refactor ( #28318 )
4 years ago
Wilber
6f0f45f69c
copy_to_cpu support uint8 ( #28372 )
4 years ago
Wilber
09fd2b2aab
Paddle support compile on sw ( #27858 )
4 years ago
Double_V
17db031a05
fix pool bug, test=develop ( #28359 )
4 years ago
Leo Chen
6115c14fca
Pool2d cuda kernel supports fp16 ( #28316 )
...
* pool2d cuda kernel supports fp16
* fix compile issue of template
* add ut
4 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
4 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.
4 years ago
wangguanzhong
5262b02585
add generate_proposals_v2 op ( #28214 )
...
* add generate_proposals_v2 op
4 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
4 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
4 years ago
石晓伟
d9b5f1261c
update the version of pybind, test=develop ( #28284 )
...
* update version pybind to v2.4.3, test=develop
* update unittests, test=develop
4 years ago
Leo Chen
18c86fb2fb
hide some logs of p2p ( #28307 )
4 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
4 years ago
LielinJiang
fb1e0c93c9
Make vision datasets return PIL.Image as default ( #28264 )
...
* return pil image as default according backend
4 years ago
zhulei
26ede6e07e
Add median api. ( #28310 )
...
* Add median api.
* Add median api.
* Add median api.
* Add median api.
* Add median api.
4 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
4 years ago
joanna.wozna.intel
571a63e7ec
Add bf16 transpose2, reshape2, concat ops ( #28195 )
4 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
4 years ago
LielinJiang
0351168967
Fix lr scheduler step error in hapi when use static mode ( #28297 )
...
* fix lr scheduler
* fix code style
4 years ago
Leo Chen
8953038400
Fix transpose in conv cudnn kernel when addto enabled ( #28295 )
4 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
4 years ago
Zhong Hui
a98c69b6c6
fix dygraph gather api
...
fix dygraph gather api
4 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
4 years ago
Chengmo
4dc8c44ba1
【Paddle.Fleet】Fix fleetrun heter ( #28252 )
...
* fix fleetrun heter ps on paddlecloud
4 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
4 years ago
Zhou Wei
b63e0ccb4a
fix load check_point bug of LinearWarmup ( #28280 )
4 years ago
Jacek Czaja
c11d9b3035
[oneDNN ] conv2d fwd&bwd optimization ( #27871 )
4 years ago
LiuChiachi
d932b5618f
set random seed to in test_export_deploy_model ( #28274 )
4 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
4 years ago
Leo Chen
7fcb32ddf3
fill_constant op supports NINF ( #28270 )
4 years ago
wangchaochaohu
495a9ceb95
fix the input error of size Op ( #28272 )
4 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 )
4 years ago
Zhang Ting
fdc06f2158
add Fuse bn add act pass ( #28196 )
...
* add fuse_bn_add_act pass
4 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
4 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
4 years ago
Aurelius84
7a3a05cccb
[Dy2Stat]Support to save model with nested output ( #28224 )
4 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
4 years ago