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
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
b9c7c66ea5
add type promotion ( #27756 )
5 years ago
huangjun12
7793fd2877
add huber_loss to fix ci, test=develop ( #27766 )
5 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
5 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>
5 years ago
xiemoyuan
4d3eefbb95
Modify the docs for Transformer's APIs. test=document_fix ( #27729 )
5 years ago
LielinJiang
7f9b198d59
Romove grid_sampler and refine example code ( #27649 )
...
* refine grid_sample and temporal_shift
5 years ago
Bai Yifan
b77d9f268e
migrate code example and doc ( #27627 )
...
* migrate code example and doc
5 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
5 years ago
Kaipeng Deng
3ccee08285
numpy -> paddle in conv & conv_transpose ( #27669 )
...
* numpy -> paddle in conv. test=develop
5 years ago
whs
ca2892019a
Add label smooth to functional package ( #27642 )
5 years ago
Yang Zhang
0873644cfe
Remove alias for `l2_normalize` ( #27616 )
...
functionality provided by `normalize`
5 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
5 years ago
littletomatodonkey
68df20d2f2
fix pad2d example code ( #27615 )
...
* fix example code
* rename var to tensor
* remove static
* fix return type
5 years ago
whs
96daa2594e
Fix padding in conv1d op ( #27590 )
5 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
5 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`
5 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
5 years ago
Double_V
b9d739a7ea
fix pool bug, test=develop ( #27537 )
...
* fix pool bug, test=develop
* fix coverage,test=develop
* fix bug, test=develop
5 years ago
Double_V
e217e965a9
fix pool bug ( #27366 )
5 years ago
liu zhengxi
4c5cfdea1b
fix paddle.nn.Transformer api ( #27391 )
5 years ago
chajchaj
fef94eac4e
fix cross_entropy bug of the axis parameter in log_softmax ( #27311 )
5 years ago
zhupengyang
ac9afa024b
paddle.nn.functional.logsigmoid -> log_sigmoid ( #27277 )
5 years ago
LielinJiang
a685435962
fix conv depthwise bug ( #27278 )
...
Fix conv deepwise bug when in_channels=1.
5 years ago
xiaoting
d4f03dfb71
fix for tuple,test=develop ( #27190 )
5 years ago
ShenLiang
5bd84b22c4
revert divide ( #27202 )
5 years ago
LielinJiang
4d7d661249
Fix kl and summary bug ( #27132 )
...
* fix summary rnn
* fix kl_div bug when input shape is [1] and reduction is batchmean
5 years ago
Double_V
c7b9d97fa9
fix avg_pool3d count_include_pad as True,test=develop ( #27155 )
5 years ago
whs
eb01976037
[2.0 API]Add checker in grid_sample_grad op ( #27126 )
5 years ago
tangwei12
5dec254be5
fix weight ( #26986 )
...
* fix weight
* fix weight and fix doc
* fix embeeding padding idx
* add UT
* fix interval
5 years ago
xiaoting
58f3ef982a
fix typo for interp_v2,test=develop ( #26843 )
...
* fix typo for interp_v2,test=develop
* align with torch, test=develop
* add area mode, test=develop
* fix bug, test=develop
* format notes, test=develop
* update for converage, test=develop
* fix bilinear, test=develop
* fix bicubic, test=develop
* fix typo, test=develop
* fix coverage, test=develop
* fix helper.input_dtype, test=develop
* polish notes, test=develop
* polish notes, test=develop
* polish notes, test=develop
5 years ago
ceci3
54d8424e93
[2.0API] fix weight_norm support negative dim and unittest in convert_syncbn ( #27108 )
...
* fix 2.0api, test=develop
* fix, test=develop
5 years ago
LielinJiang
f95e8ffc90
Fix conv and summary api bug ( #27023 )
...
* fix conv output_size has no default value bug
* fix summary bug
5 years ago
Double_V
0dfe26d069
add pool unittest ( #26949 )
5 years ago
zhang wenhui
21565e8d85
fix batchnorm ,test=develop ( #26972 )
5 years ago
Zhou Wei
352ac149ee
update doc of paddle.to_tensor ( #26820 )
...
update doc of paddle.to_tensor
5 years ago
huangjun12
fcb2ac6001
fix alpha dropout bug when p=1, test=develop ( #26977 )
5 years ago
ruri
3900f66c19
[API 2.0]Fix adaptive pooling bug ( #26922 )
...
* fix
* fix doc, test=document_fix
5 years ago
LielinJiang
96331f74d7
fix conv1d padding ( #26921 )
5 years ago
huangjun12
e480168fae
fix dropout bug in backward when input is 1d tensor ( #26837 )
...
* fix dropout bug in backward when input is 1d tensor, test=develop
* add test case and refine error message, test=develop
* refine error message, test=develop
5 years ago
zhang wenhui
c7b5ac4bb6
fix norm bug, test=develop ( #26827 )
...
* fix norm bug, test=develop
* fix norm bug, test=develop
* fix norm bug, test=develop
* fix norm bug, test=develop
* fix norm bug, test=develop
5 years ago
Guo Sheng
e6af53b10a
Update some used apis in Transformer apis to 2.0 apis. ( #26831 )
...
Fix some code samples in Tranoformer apis.
test=develop
5 years ago
Bai Yifan
1127d0d33f
fix adaptive_avg_1d outputsize type issue, test=document_fix ( #26869 )
5 years ago
tangwei12
ebc5f99789
add embedding 2.0 ( #26649 )
...
* add embedding 2.0
* add embedding support input int32
5 years ago
huangjun12
3ce727a81c
rename Dropout2D/3D to Dropout2d/3d, test=develop ( #26796 )
...
rename Dropout2D/3D to Dropout2d/3d
5 years ago
Zhong Hui
1f6df8787f
fix doc, use to_tensor
...
fix doc, use to_tensor for the loss ops
5 years ago
ruri
db68e08589
[API2.0]Unify pooling function and add adaptive max pooling function ( #26483 )
5 years ago
LielinJiang
346689c6f1
Register conv_transpose Op version for compatible Op upgrades ( #26745 )
...
* fix bug
* add version check
* fix docs, test=document_fix
* fix formula, test=document_fix
5 years ago
ceci3
42d2915ad4
[2.0 API] add SyncBatchNorm.convert_sync_batch_norm ( #26688 )
...
* add cnvert,test=develop
5 years ago
LutaoChu
d39e789882
For normalize op, remove special treatment of one-dimensional input, add check for one-dimensional input ( #26747 )
...
For normalize op, remove special treatment of one-dimensional input, add check for one-dimensional input
5 years ago
hong19860320
a7db9acc2f
Add the constraint for the scale of SELU/selu ( #26686 )
5 years ago
littletomatodonkey
52a6ca0cf5
test=develop, improve pad assertion error ( #26748 )
5 years ago
donproc
edf5f3173a
[2.0 API] add paddle.nn.functional.linear and fix paddle.nn.Linear ( #26480 )
5 years ago
Feiyu Chan
f4083010a7
Add unified RNN APIs ( #26588 )
...
* Add RNN related apis in paddl.nn
test=develop
* new rnn api, cell almost done
* add new progresses in rnn APIs for 2.0
* refine rnn APIs and docstrings.
* add unittets
* disable gpu tests when paddle is not compiled with cuda support
* remove unnecessary imports
* fix docstring
* add to no_sample wlist
* backport to python2 to avoid yield from
* add **kwargs, fix typos
* update docstrings for birnn
* rename argument for SimpleRNN and SimpleRNNCell, fix sample code
* add default value for initial_states in fluid.layers.birnn
Co-authored-by: guosheng <guosheng@baidu.com>
5 years ago
xiaoting
89d7d86684
add intepolte_v2 ( #26520 )
...
* add intepolte_v2
* fix linear interp
* polish unittest, test=develop
* update code samples to 2.0 API, test=develop
* remove warning, test_develop
* add name in attrs, test=develop
* polish code, test=develop
* change Align to align, test=develop
* fix unittest in py3,test=develop
* fix coverage, test=develop
* fix coverage, test=develop
* fix for windows ci, test=develop
* fix coverage, test=develop
5 years ago
zhupengyang
32ae8e8132
leaky_relu, log_softmax, hardshrink formula format ( #26720 )
5 years ago
wanghuancoder
07e3b9a33b
api20, Bilinear add deprecated, and fix english doc ( #26610 )
...
* API2.0 del old api(BilinearTensorProduct) from nn init.py, test=develop
* add import for deprecated, test=develop
* modify deprecated location, test=develop
* fix english doc, test=develop
* Update __init__.py
* Update __init__.py
* Update common.py
* fix english doc, test=develop
Co-authored-by: Chen Weihang <chenweihang@baidu.com>
5 years ago
Bai Yifan
8986a82131
fix adaptive gpu grad bug, add doc refine ( #26660 )
5 years ago
hong19860320
dbcef732d8
Fix the formula of SELU/selu ( #26675 )
5 years ago
Qi Li
2de034e146
fix prelu, test=develop ( #26613 )
5 years ago
zhang wenhui
0679678212
add norm 2.0 api, test=develop ( #26465 )
...
* add norm 2.0 api, test=develop
* add norm 2.0 api, test=develop
* add norm 2.0 api, test=develop
* add norm 2.0 api, test=develop
* add norm 2.0 api, test=develop
* add norm 2.0 api, test=develop
* add norm 2.0 api, test=develop
* add norm 2.0 api, test=develop
* add norm 2.0 api, test=develop
* add norm 2.0 api, test=develop
* add norm 2.0 api, test=develop
* add norm 2.0 api, test=develop
* add norm 2.0 api, test=develop
* add norm 2.0 api, test=develop
* add norm 2.0 api, test=develop
* add norm 2.0 api, test=develop
* add norm 2.0 api, test=develop
* add norm 2.0 api, test=develop
5 years ago
whs
a065a24232
【2.0 API】Enhance affine grid operator ( #26385 )
...
* Enhance affine grid operator:
1. Add cuda kernel
2. Add align corners options
test=develop
* Move new affine_grid api to functional
test=develop
* Add CUDA kernel for affine_grid.
test=develop
* Add more unitest for grid sample API
test=develop
5 years ago
ruri
1f82c0cd62
[Api2.0] add pixel shuffle ( #26071 )
5 years ago
yukavio
36868e840c
fix one_hot example doc test=document_fix ( #26585 )
...
* fix one_hot example doc test=document_fix
* fix some bug
5 years ago
wanghuancoder
422a162019
api2.0 paddle.nn.Bilinear and paddle.nn.functional.bilinear ( #26399 )
...
* api2.0 paddle.nn.Bilinear and paddle.nn.functional.bilinear, test=develop
* api2.0 fix code examples, test=develop
* modify test_bilinear_api, about place,to_tensor , test=develop
* re pass pre-commit, test=develop
* Update common.py
* fix BilinearTensorProduct ci error, test=develop
5 years ago
Double_V
c8e18360f1
[API 2.0] add pool2d3d API,test=develop ( #26331 )
...
* add pool2d3d API,test=develop
* add api unitest,test=develop
* fix unittest, test=develop
* fix reviews, test=develop
* return one element when return indices is true, test=develop
* fix low converage; to_variable to to_tensor, test=develop
* sort API params, test=develop
* fix en doc, merge PR#26108 to here, test=develop
* fix en doc, test=develop
5 years ago
ceci3
f8dbd7a273
fix syncbn, test=develop ( #26523 )
...
* fix syncbn, test=develop
* fix test,test=develop
* fix unittest,test=develop
5 years ago
whs
79539cf198
【2.0 API】Add CUDA kernel and enhance options for grid_sample ( #26576 )
...
This PR enhance CPU kernel and add new CUDA kernel to make grid_sample support:
- align_corners: with bool type.
- padding mode: which can be in ['zeros', 'reflect', 'border']
- Interpolation mode: which ca be in ['bilinear', 'nearest']
The old CPU and CUDNN version only support align_corners=true, padding_mode='zeros' and interpolation_mode='bilinear'.
The behavior of the new version op in default mode is compatible with the old version.
5 years ago
Guo Sheng
317f7ce2ef
[API 2.0] Add transformer apis ( #26418 )
...
* Add MultiHeadAttention api.
test=develop
* Add MultiHeadAttention cache type and gen_cache.
test=develop
* Add TransformerEncoderLayer and TransformerEncoder.
test=develop
* Add Transformer decoder apis.
test=develop
* Add Transformer api.
test=develop
* add unittests for transformer api
* add unittests for transformer api
* Fix some bugs in Transformer apis.
test=develop
* add unittests for encoder, decoder and transformer
* clean conflicts infor in code
* clean Chinese comments
* Add TransformerDecoderCell and TransformerBeamSearchDecoder.
test=develop
* Remove TransformerDecoderCell and TransformerBeamSearchDecoder temporarily.
test=develop
* Add import for Transformer apis.
test=develop
* Update usage of weight_attr and Tensor in Transformer api docs.
test=develop
* Update Transformer apis by renaming MultiheadAttention and cal_kv according to comments.
test=develop
* Fix MultiHeadAttention in test_transformer_api.py.
test=develop
Co-authored-by: LiuChiaChi <709153940@qq.com>
5 years ago
Bai Yifan
ae4724cfd1
fix type issue ( #26500 )
5 years ago
Zhong Hui
bf4a4636f1
change to use bce_loss op, add shape check for bce_loss
...
change to use bce_loss op, add numel check for bce_loss.
5 years ago
ShenLiang
0e81626081
add div, floor_div, remainder ( #26562 )
...
* add div, floor_div, remainder
5 years ago
Li Fuchen
c2cb8f0033
fix docstr of ctc_loss and CTCLoss, test=document_fix ( #26584 )
5 years ago
hong19860320
87843bebde
Fix the sample code of SELU/selu ( #26565 )
5 years ago
whs
dea7d7d173
【2.0 API】Add conv1d_transpose API ( #26356 )
5 years ago
huangjun12
7bd7b1884b
add alpha_dropout in nn.functional and nn.layer, test=develop ( #26365 )
...
* add alpha_dropout in nn.functional and nn.layer, test=develop
* refine Interface and assertion, test=develop
* fix ci import error, test=develop
* fix alias and use layers.scale, test=develop
* fix doc and training params, test=develop
* refine details in doc, test=develop
* fix doc details, test=develop
5 years ago
whs
e2b82e0439
【API 2.0】Add conv1d API ( #26350 )
5 years ago
LielinJiang
3a9417f4f7
Update 2.0 convolution api ( #26491 )
...
* update Conv2d Conv3d conv2d conv3d api
5 years ago
LielinJiang
d26ae9ad87
Update conv_transpose api ( #26427 )
...
* update conv_transpose api
5 years ago
hong19860320
c11c83fb3a
Add the parameter checking for softplus and fix the doc string ( #26530 )
5 years ago
zhupengyang
81c127d4ec
refine leaky_relu docs ( #26558 )
5 years ago
WangXi
ed102ea1b5
【API】Add sign and tanh api ( #26357 )
5 years ago
Zhong Hui
f5d1349826
add binary cross entropy with logit loss ( #26468 )
...
* add binary cross entropy with logit loss
5 years ago
zhupengyang
f8863e0603
leaky_relu and LeakyReLU: alpha->negative_slope ( #26216 )
5 years ago
huangjun12
412eca679f
[API2.0] add dropout, dropout2d and dropout3d in nn.functional and nn.layer ( #26111 )
...
* [API2.0] add dropout, dropout2d and dropout3d, test=develop
* refine Interface and assertion after review, test=develop
* fix alias p=1 and use scale, test=develop
* fix doc and training, test=develop
* fix doc in Dropout2D, test=develop
5 years ago
littletomatodonkey
0d1a62e908
test=develop rename CosSim interface ( #26522 )
5 years ago
Li Fuchen
dbf232a95b
add functional ctc_loss and CTCLoss class. ( #26384 )
...
* add functional ctc_loss and CTCLoss class.
* modified docstring of ctc_loss and CTCLoss
5 years ago
wawltor
ecfb89e133
Update the error message for the margin_ranking_loss
...
Update the error message for the margin_ranking_loss
5 years ago
chajchaj
5407e327a4
add cross_entropy to nn/layer and nn/functional, test=develop ( #26478 )
...
* add cross_entropy to nn/layer and nn/functional, test=develop
* use functional/cross_entropy in layer/CrossEntropy
* use functional/cross_entropy in layer/CrossEntropy, test=develop
5 years ago
Yang Zhang
e662d1e0b7
Update `paddle.clamp` ( #25906 )
...
* Update `paddle.clamp`
rename to `paddle.clip`
add fast path for dygraph mode
remove `out`
rename `input` -> `x`
update doc sample
* Fix leftover `Variable` wording
* Indent doc with spaces
* Remove `:alias` in docs
* Update `enable_imperative` -> `disable_static`
* Remove `imperative`
also trigger CI
* Update tests for better coverage
* Rebase to fix `cosine_similarity`
* Fix `cosine_similarity` some more
5 years ago
Bai Yifan
74836ec7b7
[2.0API]Add adaptive_avg_pool_2/3d ( #26369 )
...
* add adaptive_avg_pool2d
* add adaptive_avg_pool3d
5 years ago
Qi Li
8d194524ba
hardtanh prelu softmax, test=develop ( #26431 )
5 years ago
Zhong Hui
c10cf6d240
Fix the API of bce loss and add functional API binary_cross_entropy ( #26012 )
...
Fix the API of bce loss and add functional API binary_cross_entropy
5 years ago
hong19860320
40d193ed17
Add the ReLU6, Tanhshrink, SELU, Softplus, Softshrink and Softsign for the api 2.0 ( #26376 )
5 years ago
ceci3
fd66d76231
add weight_norm & remove_weight_norm ( #26131 )
...
* add weight_norm, test=develop
5 years ago
Aurelius84
0cc63cc343
[Paddle2.0] Rename hapi.Input and move `data` api ( #26396 )
...
* Rename `Input` into `InputSpec`
* fix argument place of Input api
5 years ago
yukavio
8c48c7daec
Add new one hot function in nn.functional ( #26183 )
...
* add input.py file
* write input.py
* fix init file
* add unit tests
* fix dygraph and input shape
* Revert "fix dygraph and input shape"
This reverts commit 89ad8664124c1872640b68c0a4418c377ad6aa6f.
* fixed pylint
* fix deprecated
* fix old op
* fix old op
* set check_dygraph=True
* Revert "set check_dygraph=True"
This reverts commit a8e93e33281f84e5f6fbc2b4bf05ea3e63611519.
* test commit
* fix doc and change test file name
5 years ago
Guanghua Yu
e52e7944cf
add paddle.nn.SmoothL1Loss,test=develop ( #26398 )
5 years ago
Chen Weihang
7e71ae92bd
fix test_cosine_similarity_api failed ( #26467 )
5 years ago
littletomatodonkey
bcf03273f6
add pad func ( #26106 )
...
* add pad func
* add pad
* test=develop, add pad op and apis
* restore pad2d
* test=develop, fix paddl declare
* fix pad interface
* test=develop, fix pad
* test=develop, add all pad api and cos_sim
* test=develop, remove padding default value
* test=develop, rename var to tensor
* test=develop, add more tests
* test=develop, rename tovar to totensor
* test=develop, fix init
* test=develop, add more test
* test=develop, add more tests
5 years ago
ceci3
56890dc729
Add SyncBatchNorm ( #26032 )
...
* add SyncBatchNorm,test=develop
5 years ago
Qi Li
61800f4a1e
elu gelu relu logsigmoid, test=develop ( #26304 )
...
* logsigmoid and LogSigmoid, test=develop
* add elu gelu relu, test=develop
* update to_variable to to_tensor, test=develop
* address review comments, test=develop
* address review comments, test=develop
* change to_variable to to_tensor in test, test=develop
5 years ago
zhupengyang
586a6dd358
log_softmax and LogSoftmax: impl kernel and refind docs ( #26088 )
5 years ago
LutaoChu
71b19c7f4e
add nn.functional.normalize API for API2.0, fix L1Loss API typo
...
add nn.functional.normalize API for API2.0, fix L1Loss API typo, test=develop
5 years ago
Jack Zhou
6d22f5c73e
Add PADDLE_ENFORCE in nll loss cuda kernel ( #26294 )
...
* add nll loss API, update demo code of the comment
5 years ago
wawltor
d03dd9d5f1
fix the margin ranking loss doc and api, test=develop ( #26266 )
...
* upate the target to label, test=develop
* Update the code for the margin_ranking_loss, test=develop
5 years ago
wawltor
00e08ce07b
add the sigmoid, Sigmoid for the api 2.0 ( #26171 )
...
Update the sigmoid, Sigmoid layer for the api2.0
5 years ago
Zhou Wei
6de463d3d1
expose and unify the Tensor concepts to the user ( #25978 )
...
* expose and unify the Tensor concepts to the user
* expose tensor to user
* add copy place for Tensor
* add copy place for Tensor
* add note
* add macro PADDLE_WITH_CUDA
* remove RUN_TYPE=DIST
* fix some error
5 years ago
LielinJiang
e4033a06d5
add Class KLDivLoss and function kl_div ( #25977 )
...
* add Class KLDivLoss and function kl_div
5 years ago
Bai Yifan
22b06db3d7
add paddle.nn.functional.mse_loss ( #26089 )
...
* add paddle.nn.functional.mse_loss
* add name
* fix conflict
5 years ago
zhupengyang
7a89a0a7be
hardshrink and Hardshrink: add class, threshold default 0.5 ( #26198 )
5 years ago
wawltor
682035663a
Add the loss of MarginRankingLoss for the paddle api2.0 ( #26078 )
...
add the api and doc for the margin_ranking_loss and MarginRankingLoss
5 years ago
Zhong Hui
7165f48409
change api name eps to epsilon for the pair_distance
...
change api name eps to epsilon for the pair_distance
5 years ago
Jack Zhou
dea41da715
add nll loss API for the paddlepaddle api2.0
...
* add nll loss API, update demo code of the comment
5 years ago
Zhong Hui
361363c321
add pairewise distance for the paddlepaddle api 2.0
...
add pairewise distance for the paddlepaddle api 2.0
5 years ago
LutaoChu
1d870c442e
fix paddle.nn.loss.L1Loss OP, add paddle.nn.functional.l1_loss OP for API2.0
...
fix paddle.nn.loss.L1Loss OP, add paddle.nn.functional.l1_loss OP for API2.0
5 years ago
zhupengyang
b2034c2854
softmax: imperative->static; fix doc examples ( #26134 )
5 years ago
zhupengyang
cd7b55a221
LeakyRelu: refine doc, fix name bug ( #25957 )
5 years ago
zhupengyang
2214394edc
softmax: refine doc; input->x ( #25976 )
5 years ago
yaoxuefeng
224620071b
add new flatten op test=develop ( #25393 )
5 years ago
ceci3
fc0da42b73
add Pad2D and LeakyReLU ( #25177 )
...
* add Pad2D and Leaky_ReLU, test=develop
* update,test=develop
* change name,test=develop
* add unittest and redine docs,test=develop
5 years ago
FDInSky
08e9cf4af8
update interpolate & upsample api's doc ( #24553 )
...
* test=develop update interpolate & upsample api
5 years ago
XiaoguangHu
217ca776cc
[for 2.0-alpha] add alias in paddle.nn and paddle.tensor test=develop ( #24561 )
...
* add alias in paddle.nn and paddle.tensor test=develop
* add alias in paddle.nn and paddle.tensor dir test=develop
* fix same conflict manually test=develop
* update fc and dygraph alias test=develop
* fix initalizer.py typo test=develop
5 years ago
hong
2b6d00496e
Api move 20a ( #24559 )
...
* add base name alias; test=develop
* fix embedding bug; test=develop
* fix io error; test=develop
* add metric; test=develop
* add import palce; test=develop
* add setup; test=develop
* fix incubate reader; test=develop
* fix initializer error; test=develop
5 years ago
swtkiwi
f5c6dd6def
test=develop ( #24522 )
5 years ago
FDInSky
7fedf26b87
add linear interpolate operator ( #23357 )
...
* test=develop add linear interpolate operator
5 years ago
Guanghua Yu
988fbf82e2
Fix bug with wrong calculation result in `nn.loss.CrossEntropyLoss` ( #24352 )
...
* fix bug of cross_entropy_loss,test=develop
* fix log_softmax and some comment,test=develop
5 years ago
zhongpu
a851b97a58
copy dygraph api to paddle.imperative ( #24085 )
...
* copy dygraph api to paddle.imperative, test=develop
* polish the code, test=develop
* polish code, test=develop
* polish code, test=develop
* move paddle.imperative.Layer to paddle.nn.Layer, test=develop
5 years ago
Guanghua Yu
43def6b647
fix CrossEntropyLoss op en doc, test=develop ( #24104 )
5 years ago
XiaoguangHu
526a13ff58
define fluid alias in paddle.tensor and paddle.nn dir ( #24151 )
...
* define fluid alias in paddle.tensor and paddle.nn dir test=develop
* from layer import loss in paddle.nn dir test=develop
5 years ago
Li Fuchen
7dac3226ec
modified the example of diag_embed english doc, test=develop ( #24012 )
5 years ago
Yang Zhang
ddcdd4a709
Minor fix to `MSELoss` docstring ( #24077 )
...
* Indent MSELoss example docs
* Point out input tensors should be of same shape
test=develop
* Document `MSELoss` input and return parameters
test=develop,test=document_fix
5 years ago
ceci3
488f357728
fix bceloss weight ( #23973 )
...
* update docs, test=develop
* polish eng docs, test=develop
5 years ago
Li Fuchen
87d8dc3dc0
add diag_embed op ( #23385 )
...
* add diag_embed op, test=develop
* add TestCase of diag_embed API
* Modified diag embed python API teastcase from dygraph to static graph, test=develop
* delete useless log and trigger ci, test=develop
* modified float16 of diag_embed, test=develop
* modified en doc of diag_embed
* trigger ci, test=develop
* add fp16 in dtype check of python API, test=develop
* modified __init__ and fix a big, test=develop
* modified a test bug of test_bicubic_interp_op and test_trilinear_interp_op, test=develop
* modified to use one kernel on cpu and cuda, test=develop
5 years ago
Yang Zhang
011bcc9f52
Add `paddle.nn.loss.MSELoss` ( #23399 )
...
* Add `paddle.nn.loss.MSELoss`
test=develop
* Move to `nn/layer/loss.py`
test=develop
* Add test
test=develop
* Fix dygraph
test=develop
* Increase numel in test
test=develop
* Add test for input with more dimensions
test=develop
5 years ago
lijianshe02
e21b3c273e
add nll_loss op test=develop ( #23758 )
...
* add nll_loss op test=develop
5 years ago
zhupengyang
56c54cccbd
Op(prelu/relu/f.relu/f.log_softmax) error message enhancement ( #23792 )
5 years ago
xiaoting
7de0a25b5e
Add `nn.interpolate ` ( #23434 )
...
* add nn.interpolate, test=develop
* fix interpolate typo, test=develop
* formate code, test=develop
* fix unitest, test=develop
* add test layers, test=develop
* add test layers, test=develop
* extract common function, test=develop
* reduce the threads for cuda10, test=develop
* update unitest, test=develop
* polish unitest, test=develop
* add dygraph test, test=develop
* format description, test=develop
* add 5D input check, test=develop
* fix doc, test=develop
5 years ago
Feiyu Chan
600cb8c828
Add row_conv and hsigmoid into paddle.nn(functional and layer) ( #23517 )
...
* add approximation for gelu, test=develop
* add functional conv
* add test and doc for function convs, test=develop
* update ConvTransposeOp's InferShape and error message, test=develop
* add hsigmoid, row_conv in paddle.nn(functional and layer), test=develop
* fix hyperlinks in docstring
5 years ago
hong19860320
b8d0750109
Add Sigmoid and sigmoid op in paddle.nn and paddle.nn.functional ( #23334 )
5 years ago
Guanghua Yu
588eb8e2ea
Add `paddle.nn.loss.CrossEntropyLoss` op ( #23669 )
...
* add cross_entropy_loss,test=develop
* fix some commnet,test=develop
5 years ago
ceci3
ab05cdc46e
Add bce_loss op ( #23388 )
...
* add bce_loss
* fix mistake
* replace paddle_enforce,test=develop
* fix,test=develop
* update,test=develop
* remove duplicate,test=develop
* update,test=develop
* update error,test=develop
* update,test=develop
* fix unittest, test=develop
* update, test=develop
5 years ago
zhupengyang
6dd9901b3c
add activation ops under paddle.nn and paddle.nn.functional: ReLU, LogSoftmax ( #23258 )
5 years ago
zhongpu
076dcdfde9
add instance_norm op for dygraph ( #23362 )
...
* add instance_norm op for dygraph, test=develop
* add error message, test=develop
5 years ago
Feiyu Chan
078dd05b73
add Conv2D/Conv2DTranspose/Conv3D/Conv3DTranspose in paddle.nn.layer ( #23488 )
...
* add Conv/ConvTranspose layers in paddle.nn.layer, test=develop
* add example code in docstring, test=develop
* update unittests to work with test_runner, test=develop
5 years ago
Feiyu Chan
81f1402f6c
Add functional convolutions in paddle.nn.functional ( #23408 )
...
* add functional conv
* add test and doc for function convs, test=develop
* update ConvTransposeOp's InferShape and error message, test=develop
5 years ago
Leo Chen
f944b0f6fc
Dev/add l1 loss ( #23322 )
...
* add L1Loss
* support L1Loss, test=develop
* add test, test=develop
* fix batch, test=develop
* follow comments, test=develop
5 years ago