MRXLT
b19b01af18
add dygraph code for unstack ( #27881 )
4 years ago
QingshuChen
2712d07644
support kunlun matmul_v2 ( #27910 )
...
*test=kunlun
4 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
4 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
4 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
4 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
4 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
4 years ago
Yiqun Liu
b301adc98b
Update all the examples which use paddle.static.nn.fc. ( #27904 )
4 years ago
Chen Weihang
ed31dac6eb
remove scale loss and coll grads, test=document_fix ( #27874 )
4 years ago
YUNSHEN XIE
6898746f1d
disable ut ( #27913 )
4 years ago
zhulei
62556d5e74
Add api of KaimingUniform & KaimingNormal in paddle.nn.initializer ( #27811 )
...
Add api of KaimingUniform & KaimingNormal in paddle.nn.initializer
4 years ago
hutuxian
3f2a6ab65d
fix error msg ( #27887 )
4 years ago
Huihuang Zheng
426de255ea
Refine Executor API English Doc for 2.0rc ( #27857 )
...
As the title
4 years ago
Huihuang Zheng
9b3b3b74a7
Refine ParallelExecutor English Doc for 2.0RC ( #27862 )
...
As the title
4 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
4 years ago
WangXi
50619cd842
use floyd algorithm to find meta optimizer max path, test=develop ( #27867 )
4 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
4 years ago
Chengmo
1607e87cb9
add xpu sgd & momentum ( #27728 )
...
* add xpu sgd & momentum
4 years ago
smallv0221
1b48f2f751
Fix en doc for rnn.py. test=document_fix ( #27835 )
...
* Fix en doc for rnn.py. test=document_fix
4 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
4 years ago
hong19860320
c90d35564b
Add batch_norm and layer_norm XPU kernels ( #27818 )
4 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
4 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
4 years ago
Bai Yifan
1b1217732e
fix deform_conv2d doc, test=document_fix ( #27873 )
4 years ago
Huihuang Zheng
914558049f
Refine ProgramTranslator API English Doc for 2.0rc ( #27849 )
...
As the title
4 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
4 years ago
mapingshuo
8d2cb14f98
support gradient merge with recompute, test=develop ( #27834 )
...
* support gradient merge with recompute, test=develop
test=develop
4 years ago
QingshuChen
79b5db135e
bug: fix mul unitest bug ( #27852 )
...
*test=kunlun
4 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
4 years ago
Chengmo
9637d963f7
update index sample ( #27839 )
...
* update index sample
4 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
4 years ago
wangxinxin08
e6a4d1705a
modify dtype in doublegrad matmul ut ( #27868 )
4 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
4 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)
4 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
4 years ago
Steffy-zxf
9215ad96ca
Update code examples for api2.0
...
Update code examples for api2.0
4 years ago
Peihan
af57537ec7
remove dy2static test_lac predictor run case ( #27844 )
...
* remove test_lac predictor run case
4 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
4 years ago
Kaipeng Deng
445634fa8b
polish Return doc of DataLoader ( #27808 )
...
* polish Return doc of DataLoader. test=develop
4 years ago
Bai Yifan
6cdf2c9604
mig deformable_conv to deform_conv2d ( #27841 )
...
* mig deformable_conv to deform_conv2d
4 years ago
Huihuang Zheng
e388e60312
Refine cond API English Doc for 2.0RC ( #27708 )
...
As the title
4 years ago
guofei
2e1bca99ca
Refine the gradient calculation errors caused by renaming in while_grad ( #27814 )
...
test=develop
4 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
4 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
4 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
4 years ago
joejiong
2bcb7c0a2f
Mutiply allows non-tensor data input ( #27690 )
...
Mutiply allows non-tensor data input
4 years ago
Jacek Czaja
55e63763ec
[oneDNN] adaptive pool support ( #27747 )
4 years ago
chen zhiyu
6335e6a0a6
add musl option ( #27798 )
4 years ago
GaoWei8
36bb056ed6
Add flattern weight of lstm ( #27192 )
...
* add flattern weight of lstm
4 years ago
zhupengyang
659d04df2c
hsigmoid -> hsigmoid_loss/HSigmoidLoss; refine docs ( #27745 )
4 years ago
LiuChiachi
b84d4ae31c
Fix bug of Model.save ( #27815 )
...
* fix model bugs, inputs can be InputSpec instance
* correct error message
4 years ago
hong19860320
f3e2580cf0
Fix the param of swish ( #27824 )
4 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
4 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.
4 years ago
LielinJiang
4676f03cbb
fix summary ( #27820 )
4 years ago
mapingshuo
840d54de9b
add XPU support for shape op and reshape op ( #27804 )
4 years ago
WangXi
0a1862d1d2
fleet combine amp dgc recompute meta optimizer ( #27643 )
4 years ago
cc
8fabb1c32f
Add test attribute in channelwise_quant op, test=develop ( #27742 )
...
* Add test attribute in channelwise_quant op, test=develop
4 years ago
tianshuo78520a
81d3992c47
Fix docker build error ( #27735 )
4 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
4 years ago
hong19860320
74d3a55072
Add Swish and ThresholdedReLU for API 2.0 ( #27758 )
4 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
4 years ago
Wilber
c425cf1822
[API 2.0]Update 2.0 api from fluid to paddle ( #27802 )
4 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.
4 years ago
zhupengyang
0025e0d87b
refine APIs: brelu, hardsigmoid, hardswish, maxout ( #27658 )
4 years ago
zhupengyang
5098891fdf
add softmax xpu kernel ( #27700 )
4 years ago
Leo Chen
65c06141b6
disable_fuse_all_reduce ( #27746 )
...
* disable_fuse_all_reduce
* fix test
* fix ut
4 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
4 years ago
石晓伟
0d27591642
save operator version infomation to program desc, test=develop ( #27668 )
4 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
4 years ago
Li Fuchen
c4b1faa469
modified sample code of add_position_encoding to use paddle.randn, test=document_fix ( #27679 )
4 years ago
LielinJiang
d3b98f0d84
Fix dynamic parallel train mode for hapi ( #27787 )
...
* fix dynamic parallel for hapi
* fix code style
4 years ago
LutaoChu
b53970ee36
Fix cross, cumsum op docs test=document_fix
...
Fix cross, cumsum op docs
4 years ago
Feiyu Chan
c52b6bbfa9
add alias for RNN APIs from paddle.nn.layer.rnn explicitly ( #27784 )
4 years ago
Yiqun Liu
836ee3b0c8
Polish the english documentation and example of paddle.nn.Linear and paddle.nn.functional.linear ( #27759 )
4 years ago
liu zhengxi
061240b34a
remove beam_search and beam_search_decode api in paddle.nn ( #27660 )
4 years ago
zhupengyang
395cb561aa
refine logsumexp error message and docs ( #27713 )
4 years ago
Jacek Czaja
606611d351
[oneDNN] GRU BF16 kernel ( #27731 )
4 years ago
gongweibao
baddedfdf1
fix ut test=develop ( #27760 )
4 years ago
zhulei
6da552a22f
Update initializer examples of Bilinear ( #27709 )
4 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
4 years ago
Qi Li
994438b109
change clip grad api, test=develop ( #27767 )
4 years ago
LielinJiang
d84eb9b33f
keep network mode unchange when use summary api ( #27754 )
...
* keep summary mode unchange
* add no grad decorator
4 years ago
LielinJiang
b9c7c66ea5
add type promotion ( #27756 )
4 years ago
LielinJiang
9089841b6e
Fix bilateral inference shape bug ( #26822 )
...
* fix bilateral bug
4 years ago
wanghuancoder
6076d0a5df
modify doc for bilinear_tensor_product, test=develop ( #27613 )
4 years ago
Chen Weihang
bcc34724c2
polish api code & example ( #27696 )
4 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
4 years ago
wanghuancoder
aaa3ee65e4
modify doc for unique_name.guard unique_name.generate unique_name.switch, test=develop ( #27605 )
4 years ago
wanghuancoder
7ca66f1e06
modify Sequential doc, test=develop ( #27608 )
4 years ago
wanghuancoder
7698e19928
modify doc for paddle.nn.Layer ( #27624 )
...
* modify doc for Layer, test=develop
* modify doc for Layer2, test=develop
* set dtype default value to float32, test=develop
* add example code for paddle.nn.Layer, test=develop
* set create_parameter and create_variable dtype default value to None, test=develop
* modify some example code, tet=develop
* refine, test=develop
* del no ues code, test=develop
* modify doc, example code, args, test=develop
* modify doc, test=develop
4 years ago
huangjun12
7793fd2877
add huber_loss to fix ci, test=develop ( #27766 )
4 years ago
huangjun12
de60c54938
fix doc and example code of huber_loss and npair_loss ( #27678 )
...
* fix huber_loss ans npair_loss doc and example code, test=document_fix
* remove disable_static in example code, test=document_fix
* remove huber_loss and refine npair_loss example code, test=document_fix
* remove huber_loss in functional/__init__.py, test=document_fix
4 years ago
Huihuang Zheng
9f3fb95b34
[Dy2stat] Add Simnet Test for V2 APIs ( #27460 )
...
Add Simnet Test for V2 APIs.
We used tool from https://www.paddlepaddle.org.cn/documentation/docs/zh/2.0-beta/guides/migration_cn.html#paddle1-xpaddle2-0beta to do v1.x to v2 transformation.
This PR pulled changes from #27430 , please DO NOT merge before #27430 is merged
4 years ago
joanna.wozna.intel
a90711c7a2
Add avx512 core instructions check 2 ( #27750 )
...
* Add test skip from cmake
* Remove print
4 years ago
Wojciech Uss
966447e338
Added support for quantization of fusion_gru ( #27518 )
4 years ago
joanna.wozna.intel
0cd4907eba
Add avx512 core instructions check ( #27732 )
...
* Add avx instructions check
* Small fix
* Change function name
* Change uint to unsigned int
4 years ago
ysh329
9cd86487cc
Fix api for ErrorClipByValue, code demo of clip_by_norm. test=develop ( #27654 )
...
* Fix ErrorClipByValue api and demo code of clip_by_value. test=develop
Co-authored-by: tianshuo78520a <707759223@qq.com>
4 years ago
123malin
54c368db1e
[API 2.0: doc] fix doc of nonzero ( #27685 )
...
* test=develop, update example
4 years ago
Leo Chen
69a3339aaa
Move dygraph amp api to paddle-2.0 ( #27681 )
...
* move dygraph amp api to paddle
* refine code and add unit test
4 years ago
LielinJiang
a0f1dba37f
Add visualdl callback function ( #27565 )
...
* add visualdl callback
4 years ago
pangyoki
9b3ef5979d
add categorical class ( #27695 )
...
* add multinomial cpu kernel
* fix C++ notype error
* fix windows ci array len error
* let array len be const
* change array to vector
* add cuda kernrl with num_distribution is 1, and not support replacement=False
* add multinomial python api
* support num_distribution different multinomial distributions
* add categorical class
* fix test_distribution enable_static error
* add unittest for different setting of Categorical
* optimize format
* little change
* little change
* add raise error if shape not match, optimize format
* fix windows CI dtype error in concat
* little changes
* little changes2
* change values type to int64
* change values type to int64
* change values type to int64
4 years ago
xiemoyuan
4d3eefbb95
Modify the docs for Transformer's APIs. test=document_fix ( #27729 )
4 years ago
Huihuang Zheng
ab85a8910d
[Dy2stat] Add Resnet Test for V2 APIs ( #27459 )
...
* Add test_resnet_v2.py test=develop
4 years ago
Wilber
488152a6d0
[API 2.0]Update 2.0 api from fluid to paddle. ( #27598 )
4 years ago
LielinJiang
7f9b198d59
Romove grid_sampler and refine example code ( #27649 )
...
* refine grid_sample and temporal_shift
4 years ago
danleifeng
a01bc6b31d
【paddle.fleet】fleet support non_distributed training in dygraph mode ( #27714 )
...
* fleet support non_distributed training in dygraph mode; test=develop
4 years ago
yaoxuefeng
e496640bf4
fix bmm enforce equal batch ( #27694 )
4 years ago
lilong12
742cbe6660
[bug fix] avoiding multiple initialization of gloo for fleet in dygraph mode ( #27706 )
...
* add double grad for expand, test=develop
4 years ago
hutuxian
a12071ab8a
add type check for initializer and regularizer in ParamAttr ( #27720 )
4 years ago
Qi Li
f373269df0
update histogram op for performance optimization, test=develop ( #24912 )
4 years ago
tianshuo78520a
4d5ddbf106
add xpu test ( #27622 )
...
* add xpu test
* notest;add kunlun_test
* notest;add kunlun_test
* notest;test=kunlun
* notest;test=kunlun
* notest;test=kunlun
* notest;test=kunlun
* test=kunlun
4 years ago
LiuChiachi
d15cbe70b2
Remove Input requirement in dygraph for Model ( #27557 )
...
* remove input requirment in dygraph Model
* correct unittest
* upadte save inference model in dygraph without input
* fix unittets for test_model.py
* solve conflicts
* solve conflicts
* delete http.log
* fix test_model.py bug, correct initialization of MyModel
* fix unittests bugs
* set paddle manual seed for unittest
* fix Model bugs, because inputs can be list or dict when it is provided.
* add random seed for test_export_deploy_model
* delete redundant codes, because calls
* Code optimization, error information optimization
4 years ago
liym27
3a8bef1d41
[Dynamic-to-Static] Refine 2.0rc assign: paddle.nn.functional.assign ( #27650 )
4 years ago
lijianshe02
295e87e428
fix dice_loss, log_loss doc and example code test=document_fix ( #27702 )
...
* update 2.0 API for dice_loss and log_loss test=document_fix
4 years ago
Peihan
8d68dd4785
Fix test_se_resnet unittest ( #27715 )
...
* fix test_se_resnet unittest
* fix test_se_resnet unittest
* add comments for decresing test_se_resnet precision
4 years ago
Qi Li
4d79304c09
update samples of print and clip api, test=develop ( #27670 )
4 years ago
ShenLiang
e262cb6293
fix the scatternd/scatterndadd ( #27634 )
...
* fix the scatternd/scatterndadd
* fix the doc of scatter
* replace rank with ndim
4 years ago
Huihuang Zheng
28f83f0519
[Dy2stat] Add Ptb Lm Test for V2 APIs ( #27461 )
...
As the title
4 years ago
Bai Yifan
b77d9f268e
migrate code example and doc ( #27627 )
...
* migrate code example and doc
4 years ago
pangyoki
7cd2c13f1b
add multinomial op ( #27219 )
...
* add multinomial cpu kernel
* fix C++ notype error
* fix windows ci array len error
* let array len be const
* change array to vector
* add cuda kernrl with num_distribution is 1, and not support replacement=False
* add multinomial python api
* support num_distribution different multinomial distributions
* add multinomial python api unittest
* change output dtype to int64
* fix coverage prob
* optimize format
* fix dtype of output error, should be int64_t
4 years ago
iducn
7c69e36131
add pip new requirements to windows ( #27697 )
...
* add pip new requirements to windows
* Increase the conditions that restrict system installation
4 years ago
Chen Weihang
53803202cc
add rename var in block ( #27705 )
4 years ago
yaoxuefeng
719309a80f
add note of large offset of trace test=document_fix ( #27693 )
4 years ago
yaoxuefeng
cefb49ab44
fix docs ( #27637 )
4 years ago
pangyoki
90eb5541d8
fix the precision problem of test_distribution ( #27524 )
...
* increase tolerance
* increase the difference between low and high
* change tolerance of Normal log_prob method
* change probs tolerance to 1e-4
* change tolerance of Normal kl method
4 years ago
ceci3
29d5937aaa
fix batch_norm doublegrad, test=develop ( #27703 )
4 years ago
Wojciech Uss
42d175385d
Add support for (de/re)quantization with shift ( #27481 )
4 years ago
littletomatodonkey
8da2b16d1a
fix reg ( #27647 )
...
* fix reg
* fix code example and doc
* remove disable_static
* fix doc
* fix l2decay
4 years ago
123malin
cc780b1977
test=develop, optimize geo communicator ( #26857 )
...
* test=develop, optimize geo communicator
4 years ago
lilong12
5132f5129d
terminate http server used by gloo for fleet after init ( #27698 )
4 years ago
Pei Yang
8a4f85feb9
Add unittests and OP version registry for quant_conv2d_dequant_fuse_pass ( #27689 )
4 years ago
Chen Weihang
dec53a9c79
Remove DataParallel.scale_loss & apply_collective_grads ( #27603 )
...
* remove data parallel scale loss & apply collective_grads
* move apply in minimize
* fix failed unittests
4 years ago
yukavio
7b46fb0f14
fix generate_proposals and affine grid error info ( #27636 )
4 years ago
yaoxuefeng
6d9ae66096
delete ExponentialMovingAverage in paddle/optimizer ( #27683 )
4 years ago
Chen Weihang
199da9689c
Polish api Program/CompiledProgram/ParallelEnv doc & code example ( #27656 )
...
* polish Program api doc & example
* polish CompiledProgram api doc & example
* polish ParallelEnv api doc & examples
* polish details, test=document_fix
* polish program doc details, test=document_fix
* polish details, test=document_fix
* fix note format error, test=document_fix
* add lost example, test=document_fix
* fix lost example, test=document_fix
4 years ago
Chen Weihang
b14ecb8632
Polish api BuildStrategy/ExecutionStrategy doc & code example ( #27662 )
...
* polish BuildStrategy api doc & example
* polish ExecutionStrategy api doc & example
* polish details
4 years ago
Huihuang Zheng
cc2fc93804
[Dy2stat] Refine Dy2stat APIs to 2.0rc ( #27430 )
...
Refine Dy2stat APIs to 2.0rc
After discussion, we accepted 3 key points from reviewers:
1. In 2.0rc we changed dygraph_to_static folder to dy2static
2. Keep the three files: convert_call_func.py, convert_operators.py, variable_trans_func.py
3. Remove convert_operators path when users import convert_xxx.
After this PR, users can import convert_xxx APIs by:
`import paddle.jit.dy2static.convert_xxx`
The file structure will be:
```
jit
dy2static
convert_operators.py
convert_func_call.py
variable_trans_func.py
```
Detail changed API in files:
In python/paddle/jit/dygraph_to_static/convert_call_func.py:
from ...fluid.dygraph.dygraph_to_static.convert_call_func import convert_call #DEFINE_ALIAS
In python/paddle/jit/dygraph_to_static/convert_operators.py:
from ...fluid.dygraph.dygraph_to_static.convert_operators import cast_bool_if_necessary #DEFINE_ALIAS
from ...fluid.dygraph.dygraph_to_static.convert_operators import convert_assert #DEFINE_ALIAS
from ...fluid.dygraph.dygraph_to_static.convert_operators import convert_ifelse #DEFINE_ALIAS
from ...fluid.dygraph.dygraph_to_static.convert_operators import convert_len #DEFINE_ALIAS
from ...fluid.dygraph.dygraph_to_static.convert_operators import convert_logical_and #DEFINE_ALIAS
from ...fluid.dygraph.dygraph_to_static.convert_operators import convert_logical_not #DEFINE_ALIAS
from ...fluid.dygraph.dygraph_to_static.convert_operators import convert_logical_or #DEFINE_ALIAS
from ...fluid.dygraph.dygraph_to_static.convert_operators import convert_print #DEFINE_ALIAS
from ...fluid.dygraph.dygraph_to_static.convert_operators import convert_var_dtype #DEFINE_ALIAS
from ...fluid.dygraph.dygraph_to_static.convert_operators import convert_var_shape #DEFINE_ALIAS
from ...fluid.dygraph.dygraph_to_static.convert_operators import convert_while_loop #DEFINE_ALIAS
In python/paddle/jit/dygraph_to_static/variable_trans_func.py:
from ...fluid.dygraph.dygraph_to_static.variable_trans_func import create_fill_constant_node #DEFINE_ALIAS
from ...fluid.dygraph.dygraph_to_static.variable_trans_func import create_static_variable_gast_node #DEFINE_ALIAS
from ...fluid.dygraph.dygraph_to_static.variable_trans_func import data_layer_not_check #DEFINE_ALIAS
from ...fluid.dygraph.dygraph_to_static.variable_trans_func import to_static_variable #DEFINE_ALIAS
from ...fluid.dygraph.dygraph_to_static.variable_trans_func import to_static_variable_gast_node #DEFINE_ALIAS
4 years ago
MRXLT
3baf561a90
reduce epoch ( #27661 )
4 years ago
Shang Zhizhou
6363a3362b
add paddle.enable_static() && random.seed(xx) to test_activation_op ( #27585 )
...
* add paddle.enable_static() to some testcase
* add seed to random in test_activation_op
* update a randomseed
* update a randomseed
4 years ago
Zhou Wei
6871e57b30
fix in_dynamic_mode of paddle,test=document_fix ( #27671 )
4 years ago
Huihuang Zheng
abb32bbccd
[Dy2stat] Fix lstm bug ( #27631 )
...
This PR fixed two bugs when converting LSTM in dy2stat:
is_unsupported has a condition can trigger Python syntax error
LSTM API's implementation in _rnn_static_graph doesn't include parameter initialization, which can cause dy2stat error.
4 years ago
furnace
b7b1ae865e
update mv op docs ( #27559 )
4 years ago
lilong12
bbc2add703
Initialize gloo for low level collective apis ( #27672 )
...
* add gloo initializer, test=develop
4 years ago
Huihuang Zheng
b7107c65a6
[Dy2stat] Fix test_yolov3 to Run Correctly on Win/Mac ( #27666 )
...
We decreased the batch size on CPU so that it can run correctly on Win/Mac machine, this may cause the delta to be larger. So I set larger delta value.
4 years ago
danleifeng
6ad72106f9
[API 2.0] Fix api 'is_empty' ( #27593 )
...
* fix is_empty api and code example; test=develop
4 years ago
LiuChiachi
ee13a2ab88
Add transformer generate square subsequent mask api ( #27651 )
...
* add transformer generate square subsequent mask api
* add dtype for input, update doc, use -np.inf
* add dtype for input, update doc, use -np.inf
4 years ago
Kaipeng Deng
3ccee08285
numpy -> paddle in conv & conv_transpose ( #27669 )
...
* numpy -> paddle in conv. test=develop
4 years ago
whs
ca2892019a
Add label smooth to functional package ( #27642 )
4 years ago
arlesniak
0ecf441af1
Add support for mkldnn ops types selection with FLAGS in dygraph ( #27482 )
...
* Add support for mkldnn ops types selection with FLAGS in dygraph
* use regex to match DNNL verbose
* python3 encoding fix
4 years ago
YUNSHEN XIE
e7b476c15d
disable ut test_parallel_executor_fetch_isolated_var,test=document_fix ( #27641 )
4 years ago
mapingshuo
c29aa8c40e
fix reshape doc, remove reverse api ( #27592 )
4 years ago
Qinghe JING
1539a23822
Fix bugs in hdfs download ( #27344 )
...
* set default value to strategy in distributed_optimizer test=develop
4 years ago
cc
07b01b0e90
[doc] Change docs of WeightNormParamAttr to dygraph model ( #27571 )
...
* Change docs of WeightNormParamAttr to dygraph model, test=develop, test=document_fix
4 years ago
Leo Chen
c7e0a8bebf
Remove inplace argument when calling nn.reshape() ( #27376 )
...
* remove inplace argument
* fix sample code
* fix sample code
4 years ago
Leo Chen
26b6169106
Refine initializer to support not passing block in dygraph mode ( #27612 )
...
* support not passing block
* fix NumpyArrayInitializer
* add unit test
4 years ago
Yang Zhang
0873644cfe
Remove alias for `l2_normalize` ( #27616 )
...
functionality provided by `normalize`
4 years ago
Feiyu Chan
e1f8617ee2
bugfix: RNN does not initialize the state for the cell correctly ( #27644 )
...
1. fix a bug that paddle.nn.RNN does not initialize the state for the cell correctly;
2. add unittest for paddle.nn.RNN and paddle.nn.BiRNN
4 years ago
Li Fuchen
5e4f01f5ef
modified sample code of add_position_encoding to 2.0 ( #27561 )
...
* modified sample code of add_position_encoding to 2.0, test=document_fix
* use core.op in add_position_encoding API.
* add test for add_position_encoding in dygraph mode
4 years ago
Zhang Ting
a4c25b2f34
use paddle.is_compile_with_cuda ( #27586 )
...
* modify doc
4 years ago
yaoxuefeng
780140599f
【paddle.distributed.fleet】add data_generator in distributed.fleet.dataset ( #27345 )
4 years ago
Zhang Ting
eb37ee2a26
modify docs of program API, test=document_fix ( #27600 )
4 years ago
lilong12
36c0410223
Revert "Initialize gloo for low level collective apis ( #27356 )", test=document_fix ( #27665 )
4 years ago
Zeyu Chen
aed0080181
Remove NLTK requirements to avoid dependency security alert from Github Dependabot. ( #27628 )
...
Remove NLTK requirements to avoid dependency security alert from Github Dependabot
4 years ago
Pei Yang
ae6e40a7fd
Add unittests and OP version registry for tensorrt_subgraph_pass ( #27544 )
...
* add unittests and op version register for tensorrt_subgraph_pass
* rename to test_trt_subgraph_pass.py
* fix softmax converter diff when padding dim=1
4 years ago
123malin
6822307745
test=develop, rm netifaces ( #27581 )
...
* test=develop, rm netifaces
4 years ago
wanghuancoder
c68a0313a5
add paddle.fluid._cuda_synchronize ( #27595 )
...
* add paddle.fluid._cuda_synchronize, test=develop
* fix bug about core_avx core_noavx, test=develop
* delete CPUPlace and XPUPlace, test=develop
4 years ago
Li Fuchen
516d84b22a
fix tests warpctc ( #27639 )
4 years ago
liym27
074a71bd25
Support assignment to a Variable in dynamic mode but not deal with backward. ( #27471 )
...
* Support assignment to a Variable in dynamic mode. Note: not deal with backward.
* Rewrite VarBase __setitem__ for high-performance.
* try to test 3 means to do __setitem__ and test the performance of 3 means.
* Retain the means of the highest performance: C++ code and don't trace op.
4 years ago
lilong12
fa73e4a284
Initialize gloo for low level collective apis ( #27356 )
...
* add gloo initializer, test=develop
4 years ago
Tao Luo
bf99bc4a62
update name_scope example code ( #27594 )
...
* update name_scope example code
test=document_fix
* refine name_scope doc
test=document_fix
4 years ago
WangXi
5641ea2bf6
Remove optimizer which in fleet, test=develop ( #27606 )
4 years ago
littletomatodonkey
68df20d2f2
fix pad2d example code ( #27615 )
...
* fix example code
* rename var to tensor
* remove static
* fix return type
4 years ago
Aurelius84
7c5162400f
[API 2.0]Migrate api example for gradients/append_backward/program_guard ( #27570 )
...
* modify sample code
* variable -> tensor
* migrate program_guard sample code
* refine error message
* migrate program_guard
* refine comment style
* fix indent
4 years ago
Dong Daxiang
4e8f18ab25
Get final strategy ( #27602 )
...
* add get final strategy for user to print final strategy
4 years ago
furnace
d01f626944
update mv op according PR#27024 ( #27474 )
4 years ago
YUNSHEN XIE
d1c2a3bc6f
disable ut test_warpctc_op,test=document_fix ( #27632 )
4 years ago
littletomatodonkey
6e41143ffe
remove paddle.metrics.cos_sim api ( #27569 )
...
* fix api alias
* remove cos_sim
4 years ago
whs
96daa2594e
Fix padding in conv1d op ( #27590 )
4 years ago
Li Fuchen
1501a80f74
add support to float64 input of warpctc op. ( #27399 )
...
* add float64 input to ctc_loss
* modified error message of warpctc
* update repo and tag of warpctc
* add test for warpctc with float64 input
* modified warpctc.cmake to make sure build always
* resolved sample code bug of warpctc
* add core.ops in warpctc dygraph
* fix a bug of test
4 years ago
liym27
3f170dd83d
[API 2.0] Fix example code of api 'switch_case' and add/delete alias ( #27578 )
...
* Fix example code of api `fluid.layers.switch_case` to use api2.0
* delete `paddle.nn.switch_case` alias and add `paddle.static.nn.switch_case`
4 years ago
Zhou Wei
c5b6e44b4a
fix cholesky of test_math_op_patch_var_base ( #27591 )
4 years ago
liym27
9b7ebf1099
[API 2.0] Fix example code of api 'case' and add/delete alias ( #27577 )
...
* Fix example code of api fluid.layers.case
* delete paddle.nn.case alias and add paddle.static.nn.case
4 years ago
QingshuChen
6b727e08b1
support elementwise add, activation, matmul on Baidu Kunlun ( #27143 )
...
* support elementwise add, activation, matmul on Baidu Kunlun
* test=kunlun
* minor
* test=kunlun
* reconstuct the xpu directory
* test=kunlun
* minor
* test=kunlun
* minor
* test=kunlun
* minor
* test=kunlun
* minor
* test=kunlun
* minor
* test=kunlun
4 years ago
Jack Zhou
d37b3774fd
register log double grad kernel for cpu and cuda
...
register log double grad kernel for cpu and cuda
4 years ago
Zhou Wei
162b4d6c13
remove to_variable from 2.0 ( #27528 )
4 years ago
Chengmo
0e101c4f6f
Fix test dist fleet heter ctr ( #27513 )
...
* fix test_dist_fleet_heter_ctr & peformance update
4 years ago
Double_V
42065ba37a
fix activate_nn_grad, test=develop ( #27555 )
4 years ago
Double_V
b9d739a7ea
fix pool bug, test=develop ( #27537 )
...
* fix pool bug, test=develop
* fix coverage,test=develop
* fix bug, test=develop
4 years ago
gongweibao
86fa043205
init test=develop ( #27554 )
4 years ago
Chen Weihang
ecfdfc9c58
fix guard place set error ( #27573 )
4 years ago
joanna.wozna.intel
b0ee1405f7
Add conv2d bfloat16 support ( #27325 )
4 years ago
LielinJiang
b38e4f2840
Refine vision models ( #27476 )
...
* refine vision models
4 years ago
Leo Chen
0b4bb023a7
Add static mode check on data() ( #27495 )
...
* add static check on data()
* follow comments
* fix ut
4 years ago
Thunderbrook
6f69a4cb05
add xpu in heter mode ( #27000 )
...
* add xpu in heter mode
test=develop
* BOOST_CONST_GET; PADDLE_THROW
test=develop
* code style
test=develop
* code style
test=develop
* code style
test=develop
* refine
test=develop
* refine
test=develop
* refine
test=develop
* refine code
test=develop
4 years ago
ceci3
8daccc9ea7
Fix batch norm double grad compute ( #27549 )
...
* fix bn double grad, test=develop
* update, test=develop
4 years ago
Chen Weihang
c143326df5
try to fix test_paddle_save_load unknown timeout ( #27536 )
...
* try to fix paddle save load test
* open paddle save load
* replace dataloader
* remove dataloader
4 years ago
ShenLiang
6fc74bbaf6
add fp16 for matmul ( #27523 )
...
* add fp16 for matmul
4 years ago
Zhong Hui
fab4e6d08f
add abs support double grad
...
add abs support double grad for the api 2.0
4 years ago
Shang Zhizhou
77a36f8997
[buf fix]:fix some unittests error ( #27540 )
...
* [buf fix]:fix unittest test_activation_op error
* split long-time unittests to smaller ones
* rename some unittests
4 years ago