wawltor
6b28456ed0
add the argmax, argmin for the api2.0
...
* add the new api and op for the argmax, argmin
5 years ago
WangXi
ed102ea1b5
【API】Add sign and tanh api ( #26357 )
5 years ago
WangXi
45711dade7
【API】rename div to divide, add floor_divide, remainder ( #26434 )
5 years ago
LutaoChu
4e0c6d91aa
add paddle.tensor.linalg.diag API, diag_v2 OP and CUDA kernel
...
add paddle.tensor.linalg.diag API, diag_v2 OP and CUDA kernel.
5 years ago
ShenLiang
c609066074
Add Matmul op ( #26411 )
...
* add matmul_v2
5 years ago
lilong12
65ac1ef661
fix docstring for expand, expand_as and tile. ( #26529 )
...
* fix docstring, test=document_fix
5 years ago
wangchaochaohu
07c1c47bc9
refine the doc of OPs ( #26551 )
5 years ago
zhupengyang
57e124298d
var, std: input->x, adjust attr order, remove out, add docs ( #26446 )
5 years ago
wangchaochaohu
e966d0b673
refine the doc test=develop ( #26517 )
5 years ago
ShenLiang
190c695733
fix scatter doc ( #26248 )
...
* fix the comment of scatter
5 years ago
Leo Chen
aa2a9b5d89
add bernoulli op ( #26511 )
...
* add bernoulli op
* fix cuda kernel and add unit test
* refine doc
* fix uniform
5 years ago
lilong12
5f2c0e7e95
[2.0 api] fix the example codes in doc strings ( #26428 )
...
* fix the example codes, test=develop
5 years ago
wangchaochaohu
e167e87974
【API2.0】add masked_select Op for API2.0 ( #26374 )
5 years ago
pangyoki
bdac6bc880
Rename uniform_random API ( #26347 )
...
* Rename uniform and gaussian APIs
* rename uniform_random API as uniform
* Fixed unittest
* fixed unittest AttributeError
* Fixed unittest
* Add uniform function rather than alias
* remove templatedoc
* solve conflict and fix doc code
* fix doc code
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
zhupengyang
6e5670b8bd
mean: not support int32, int64; add check for axis ( #26401 )
5 years ago
wangchaochaohu
bdb805505e
【API2.0】add numel API for paddle test=develop ( #26311 )
5 years ago
guofei
bb7fd0974f
Add paddle.tensor.math.prod ( #26351 )
...
* Add new API: paddle.prod
test=develop
5 years ago
ShenLiang
facc0a10c9
fix the doc of dot ( #26257 )
...
* fix the doc of dot
5 years ago
liym27
adba432f27
[API 2.0] Add api paddle.reshape(x, shape, name) ( #26338 )
...
(1) Add api paddle.reshape(x, shape, name);
(2) Use Tensor replaces Variable. test=develop
5 years ago
Zhang Ting
cefbb3500e
remove alias from doc, test=document_fix ( #26487 )
5 years ago
Zhang Ting
6914a12f82
rename the inputs of allclose ( #26360 )
...
* rename input
* add unittest, test=develop
* use paddle.data instead of fluid.data, test=develop
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
liym27
6cd67a8160
[API 2.0] Fix api sum:(1)input->x;(2)dim->axis;(3)keep_dim->keepdim ( #26337 )
...
* 1.Fix api sum:(1) input->sum; (2)dim->axis; (3)keep_dim->keepdim.
* 2. fix bug when len(axis) == len(x.shape).
5 years ago
wangchaochaohu
2101dfd2b3
【API2.0】add Chunk API ( #26314 )
5 years ago
lilong12
638bbb6153
Improve expand as ( #26290 )
...
align expand_as op to expand.
5 years ago
Yang Zhang
d063a98b40
Update `paddle.add` ( #25910 )
...
* Update `paddle.add`
remove `alpha`
update doc sample code
remove `:alias` etc
* Remove `imperative` reference from docstring
5 years ago
lilong12
241b44db14
[API 2.0] adaptive expand op to use shape instead of expand_times ( #26206 )
...
* adaptive expand op to 2.0 (align to torch.expand) , test=develop
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
lilong12
fbd4d3cc97
[API 2.0] add paddle.tile op ( #26245 )
...
* add tile_op, test=develop
5 years ago
ShenLiang
5113aae6ea
fix the doc of inverse, dot, cholesky ( #25860 )
...
* fix the doc of inverse, dot, cholesky
5 years ago
wawltor
2d6cc0b125
support the tuple for attribute of axis in min, max for api2.0
...
Update the code for the min,max, test=develop
5 years ago
zhupengyang
faf83a7af2
paddle.mean: add attr axis, keepdim ( #26147 )
5 years ago
wawltor
9c17b3c9f8
Add the max, min, maximum, minimum api for the API 2.0
...
* Add the max, min, maximum, minimum api for the API 2.0, test=develop
5 years ago
pangyoki
13b80d9bea
fixed imperative module in doc example code ( #26149 )
...
* fixed imperative module in doc example code
* fixed static module
* solve conflict
5 years ago
LutaoChu
b6d14d9d07
add deprecated decorator, remove alias for cumsum op ( #26104 )
...
add deprecated decorator, remove alias for cumsum op
5 years ago
pangyoki
2efcb481c8
Paddle-2.0 API directory migration ( #25898 )
...
* Directory migration, test=develop
* Change imperative from paddle init to paddle framework, test=develop
* Fixed jit bug, test=develop
* default static mode, test=develop
* fixed format and create parameter belongs to framework, test=develop
* Fixed import package, test=develop
* fix __init__ format, test=develop
* fixed alias problem
* fixed paddle.enable_imperative problems, test=develop
* Add unittest
* delete install_check comment
* Fixed unittest timeout
* fixed unittest error
* move Program default_xx_program to static package
* optimize unittest method
* fixed framework __init__ format
* fixed jit path
* delete alias
* move jit to paddle
* Fixed unittest format
* fixed paddle.default_main_program
* Fixed save load API in paddle __init__.py
* fixed ci paddle.imperative.to_variable
5 years ago
ShenLiang
3076205ba9
rm eye, test=develop ( #26031 )
5 years ago
LutaoChu
bf2db646de
fix cumsum op for API 2.0, optimize performance
...
update cumsum api and fix up the cumsum op
5 years ago
Feiyu Chan
e853ece0a2
update document template for unary elementwise layers ( #25896 )
...
1. update document template for unary elementwise layers(a.k.a. activation layer);
2. remove generate_op_noattr and use generate_activation instead; remove redundant function copies;
3. minor update for docstring to fix rst format errors.
4. fix doc for Rsqrt OP
5. add sample code for each activation separately;
6. remove the unused deprecated decorator.
5 years ago
joanna.wozna.intel
734cf1c3e9
Change use_quantizer attribute name and data type ( #25838 )
...
* Change use_quantizer attribute name and data type
* Fix problem with setting attribute
* Add changes due to review
* Small change in function
* Restore use_quantizer attr for compatibility
5 years ago
Leo Chen
5258d53d65
refine unsqueeze, test=develop ( #25470 )
...
* refine unsqueeze, test=develop
* update unsqueeze, test=develop
* refine unsqueeze, test=develop
* refine unsqueeze, test=develop
* update
* remove None, test=develop
* follow comments
* support bool
* update doc
* follow comments
* merge develop
5 years ago
wangchaochaohu
0dc485e6fe
refine the value parameter's Tensor support of fill_constant Op test=… ( #25986 )
5 years ago
yaoxuefeng
07f509a835
fix 4 apis test=develop ( #25529 )
5 years ago
Leo Chen
6e7f0bb284
refine paddle.stack ( #25305 )
...
* refine stack in dygraph mode, test=develop
* update stack, test=develop
* rename Variable to Tensor, test=develop
* add name args to fluid.layers.stack, test=develop
* follow comments
* update doc
* update doc
* follow comments
5 years ago
yaoxuefeng
224620071b
add new flatten op test=develop ( #25393 )
5 years ago
wawltor
a43b0d155d
Update the code for the sort api
...
update the sort api, delete unused ouput index tensor
5 years ago
wangchaochaohu
ff717d5158
Add support for tuple of concat Op test=develop ( #25800 )
5 years ago
WuHaobo
12bed4a931
remove all op with out args ( #25570 )
...
* test=develop,test=document_fix, remove the out args
* Revert "test=develop,test=document_fix, remove the out args"
This reverts commit f430799bc82ee327d14a04c3bb1ea712d39d1cef.
* test=develop,test=document_fix, remove the out args
* remove all the out args
* remove all the out args
* test=develop, remove all the out args
* test=develop, remove all the out args
* test=develop, remove out args in matmul testcase
* test=develop, fix the bugs of out args testcase in logsumexp
* test=develop, fix the bugs of out args testcase in elementwise_add
* test=develop, fix the bugs of out args testcase in elementwise_div
* test=develop, fix the bugs of out args testcase in activation
* test=develop, fix the bugs of out args testcase in addcmul
* test=develop, fix the bugs of out args
* test=develop, fix the bugs of out args in API example
* test=develop, fix the bugs of out args in kron testcase
* test=develop, fix the bugs of out args in kron testcase
* test=develop, remove out args
* test=develop, remove out args
* test=develop, fix the coverage
* test=develop, polish codestyle
* test=develop, Update math.py
* test=develop, polish codestyle
* test=develop, polish codestyle
* test=develop, polish codestyle
* test=develop, polish codestyle
* test=develop, polish the test_activation_op.py
* test=develop, Update math.py
* test=develop, fix the failed CI
* test=develop, add core.ops
* test=develop, add core.ops change clamp to clip
* test=develop, add core.ops change clamp to clip
* test=develop, write testcase for clamp OP
5 years ago
wawltor
595a719795
Update the api for the compare_ops
...
Update the code for the compare_ops, update the api and doc
5 years ago
wangchaochaohu
fc6fed3283
(Variable --->Tensor) refine the OP doc for API2.0 ( #25737 )
5 years ago
wangchaochaohu
32b9577b2a
refine the split op for API 2.0 test=develop ( #25320 )
5 years ago
wawltor
dc42e3c4bc
Fix the argsort and sort api for the paddle api2.0 ( #25514 )
...
Fix the argsort and sort op for the api2.0, and update the api
5 years ago
zhupengyang
0ca1bb56df
refine docs of rand, randn, randint, randperm, zeros_like, arange ( #25633 )
5 years ago
zhupengyang
d2f7ac61ee
ones_like API: remove device, input -> x ( #25663 )
5 years ago
wangchaochaohu
1e4ab728fb
refine the concat Op for API 2.0 test=develop ( #25307 )
5 years ago
LutaoChu
b158a21bda
fix bug: cross OP behavior is not as expected when axis=0
...
fix the cross OP behavior is not as expected when axis=0
5 years ago
Leo Chen
4ec1251a1e
Refine squeeze, test=develop ( #25281 )
...
* refine squeeze, test=develop
* update squeeze, test=develop
* refine compile-time infershape, test=develop
* add more unittest, test=develop
* follow comments, test=develop
* add update_api, test=develop
* follow comments, test=develop
5 years ago
cnn
70cee22fde
New features, add sinh and cosh op, test=develop ( #25495 )
...
* New features, add sinh and cosh op, test=develop
* remove duplicate test function and remove out paramters, test=develop
* Add out paramters temporary, remove later. test=develop
* remove out args, PR 25570, test=develop
* remove TestParameter, test=developx
* add test api for static dygraph, test=develop
* add backword unittests for sinh and cosh, test=develop
5 years ago
Shibo Tao
e3736d73cf
add op multiply, delete op elementwise_mul from math.py. ( #25480 )
...
* add op multiply, delete op elementwise_mul from math.py. test=develop,test=document_fix
* bug fix. test=develop,test=document_fix
* bug fix. test=develop,test=document_fix
* bug fix. test=develop,test=document_fix
* bug fix. test=develop,test=document_fix
* add unittest for multiply op. test=develop.
* fix code style. test=develop
* use random input. test=develop
* add test error case for static computation graph. test=develop
* add np.random.seed(7)
* increase input ndarray size. test=develop
* change float32 to float64. test=develop
5 years ago
wangchaochaohu
2092660c43
Ones op for API 2.0: remove the device and out parameters ( #25497 )
5 years ago
wangchaochaohu
4a44ffdd24
refine the eye Op for API 2.0 test=develop ( #25295 )
5 years ago
zhupengyang
cd933c0aa2
refine error message of randint ( #25613 )
5 years ago
LutaoChu
bbe8f7bdcd
update cross op parameters for API 2.0
...
* update cross op parameters
5 years ago
zhupengyang
5a2d15a1d0
arange API: start default is 0, end default is None ( #25452 )
5 years ago
Shibo Tao
6602ccf4ca
delete mul op. ( #25499 )
...
* delete mul op. test=develop,test=document_fix
* bug fix. test=develop,test=document_fix
5 years ago
WuHaobo
73409d5039
Fix log1p ( #25488 )
5 years ago
Shibo Tao
a4d3335b6d
Fix elementwise ops ( #25500 )
5 years ago
wangchaochaohu
e4017e5c4f
refine the index_select Op for API 2.0 test=develop ( #25296 )
5 years ago
zhupengyang
2250120245
randint API: remove out, devive, stop_gradient; add name ( #25433 )
...
* randint API: remove out, devive, stop_gradient; add name; test=develop
* test=develop
* test=develop
* test=develop
5 years ago
yaoxuefeng
5d3766ff3d
modify flip test=develop ( #25312 )
...
According to paddle 2.0 standard
1, change flip api attr name 'dim' to 'axis'.
2, support empty axis
3, change example code to imperative mode.
5 years ago
zhupengyang
f8eccb0b1c
zeros_like API: remove device; input -> x ( #25413 )
5 years ago
yaoxuefeng
f795a1bf12
modify meshgrid test=develop ( #25319 )
...
According to paddle 2.0 standard.
1, chang api to def meshgrid(*args, **kwargs) we hide name argument in **kwargs.
2, add relate ut.
3, change example code to imperative mode
5 years ago
zhupengyang
25029254bc
randn API: remove out, devive, stop_gradient; add name ( #25409 )
5 years ago
yaoxuefeng
aaa7cbd56f
modify trace api test=develop ( #25397 )
5 years ago
yaoxuefeng
c42d662e2a
modify roll test=develop ( #25321 )
5 years ago
wangchaochaohu
bdc2c2dba8
full Op:remove device, out and stop_gradient parameter for API 2.0 test=develop ( #25257 )
5 years ago
wangchaochaohu
0b2ec49ff9
refine the linspace Op for API 2.0 test=develop ( #25284 )
5 years ago
zhupengyang
5b573c58e2
randperm API: remove out, devive, stop_gradient; add name ( #25410 )
5 years ago
wangchaochaohu
090a331d30
refine the full_like Op for API 2.0 test=develop ( #25294 )
5 years ago
zhupengyang
eb3173e2b6
rand API: remove out, device, stop_gradient; add name ( #25246 )
5 years ago
Jacek Czaja
a7944904d3
[oneDNN]elementwise_add and elementwise_mul int8 support ( #24984 )
...
* Start implementing int8 eltwise add
test=develop
* - Fix to Michal PR
* - Fix
test=develop
* - Lint fixes
test=develop
* - Added checking if elementwise_mul can be used
test=develop
* - Added attribs to skip_attrs_set
test=develop
* - Improved broadcasting
test=develop
- fixes to compilation
- fix
- fix
- Lint fixes
test=develop
* - removed redundant condition
test=develop
Co-authored-by: Michal Gallus <michal.gallus@intel.com>
5 years ago
Qi Li
704cad6a66
Add histc op ( #24562 )
...
* add histc operator, test=develop
* update english doc to 2.0 API, test=develop
* update API from histc to histogram, test=develop
Co-authored-by: root <root@yq01-gpu-255-129-15-00.epc.baidu.com>
5 years ago
wangchaochaohu
d160e57a5c
fix the full error message test=develop ( #24773 )
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
silingtong123
ca29abc813
test=develop, test=document_fix, modify the code example of randont ( #24533 )
...
Co-authored-by: root <root@yq01-gpu-151-22-00.epc.baidu.com>
5 years ago
swtkiwi
f5c6dd6def
test=develop ( #24522 )
5 years ago
yongqiangma
74803f5190
add unbind python api ( #24141 )
...
* add unbind pyhon api. test=develp
5 years ago
Li Fuchen
077e5a0fe5
Add trace op ( #23873 )
...
* add trace op, test=develop
* Optimized the implementation of trace op, test=develop
* fix a bug of include in trace_op.h, test=develop
* move trace API from creation to math, test=develop
* modified en doc. test=develop
* add complex trace api
* add complex sum api, test=develop
* modified en doc of complex sum and trace, test=develop
* modified doc and trace API, test=develop
* modified en doc of trace and sum, test=develop
* modified comment in complex kron API, test=develop
* OP Should Not Have Unused Input, test=develop
* add GetExpectedKernelType, test=develop
5 years ago
Yiqun Liu
ecfddebbef
Add the implementation of inverse ( #23310 )
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
Chengmo
28a558e867
Update index sample ( #24109 )
...
* update index sample
5 years ago
Liufang Sang
0f77e31691
fix error when out is not None test=develop ( #24103 )
5 years ago
Feiyu Chan
e01262e691
add kron op ( #24105 )
...
* add kron op and its python API, doc and unittests.
* add kron in paddle.complex
5 years ago
Pei Yang
ab4d314095
refine full_like en api. test=develop ( #24021 )
5 years ago
Guo Sheng
a8c0fb4e86
Add cholesky_op ( #23543 )
...
* Add cholesky_op forward part. test=develop
* Complete cholesky_op forward part. test=develop
* Add cholesky_op backward part. test=develop
* Complete cholesky_op backward part. test=develop
* Refine cholesky_op error check and docs. test=develop
* Add grad_check unit test for cholesky_op. test=develop
* Fix sample code in cholesky doc. test=develop
* Refine some error messages of cholesky_op. test=develop
* Refine some error messages of cholesky_op. test=develop
* Remove unused input in cholesky_grad. test=develop
* Remove unused input in cholesky_grad. test=develop
* Fix stream for cusolverDnSetStream. test=develop
* Update PADDLE_ENFORCE_CUDA_SUCCESS from cholesky_op to adapt to latest code.
test=develop
* Add CUSOLVER ERROR in enforce.h
test=develop
* Fix the missing return value in cholesky. test=develop
5 years ago
WuHaobo
79eaac55ba
polish_tril_triu_docstring and add dygraph ( #24055 )
...
* Update creation.py
5 years ago
littletomatodonkey
eec18202f5
add addmm dyg mode, test=develop ( #24095 )
5 years ago
Qinghe JING
13b03e7ad6
add gather split squeeze stack unsqueeze api ( #24035 )
...
* add gather split squeeze stack unsqueeze api test=develop
* add gather split squeeze stack unsqueeze api test=develop
* fix bug test=develop
* fix bug test=develop
* fix bug test=develop
* fix bug test=develop
* fix bug test=develop
5 years ago
Xing Wu
614eb942fc
upload code for tensor.rand ( #23507 )
...
* upload code for tensor.rand
* fix import
* update example, change paddle.tensor.rand to paddle.rand
* change 'variable' to 'Variable', test=develop
change 'variable' to 'Variable' in description, test=develop
* add pre-commit check
* add pre-commit check
* pre-commit check, test=develop
* add more unittest code
* trigger ci, test=develop
* pre-commit check, test=develop
* update api and test comment, test=develop
* update api and test comment, test=develop
* add more type check, test=develop
* add detail error info for device, test=develop
* add unnittest, test=develop
* resolve conflict and pre-commit check, test=develop
5 years ago