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
wawltor
5c669ad1c2
Add the support dygraph out attribute for the op of mm in api2.0 ( #23978 )
...
Fix the dygraph mode in matmul, add the support in Linear Op
5 years ago
Zhang Ting
f5d76b50ec
polish the dist doc, test=document_fix ( #23982 )
5 years ago
wangguanzhong
931cba2e64
add clamp api, test=develop ( #23273 )
...
* add clamp api, test=develop
5 years ago
silingtong123
f6dbf8e3a4
add 'seed' arguemnt of randint API ( #23809 )
...
* test=develop, add seed arguemnt of randint API
5 years ago
danleifeng
7049f301ee
fix example bug;test=develop ( #23893 )
5 years ago
liuwei1031
94fdb8eb59
tweak doc of dot and logsumexp, test=develop ( #23925 )
5 years ago
Qinghe JING
ad7ac4c607
create bmm op and move several api from fluid.layers to tensor ( #23457 )
...
* add gradient check to reduce ops
* add skip gradient check to reduce ops test=develop
* modify stack api test=develop
* add bmm op and move serval ops from fluid.layers to tensor test=develop
5 years ago
GaoWei8
490db7f325
add paddle.tensor interface ( #23801 )
...
* add paddle.tensor
test=develop
* polish gpu where codes
test=develop
* polish test code
test=develop
5 years ago
Steffy-zxf
cca5f8fa1c
fix paddle.tensor.pow api example typo in api2.0
...
change the exponet_tensor to exponent_tensor in the pow api
5 years ago
liuwei1031
c645d23519
improve efficiency of dot op in dygraph mode ( #23856 )
...
* improve efficiency of dot op in dygraph mode
* add comments for dot op for dygraph behavior
5 years ago
Bai Yifan
477cb1fdb3
Add addcmul, test=develop ( #23411 )
...
* add addcmul, test=develop
5 years ago
gfwm0502
d8ca66dae2
Modify documents of executor and randn and fix other errors ( #23879 )
...
test=develop
5 years ago
Liufang Sang
f5fac6fdb2
add paddle.std api ( #23825 )
...
* add paddle.std api test=develop
* update test=develop
* fix example code format test=develop
5 years ago
suytingwan
3e1676fa9a
Add meshgrid op ( #23736 )
...
* test=develop fix api doc error
5 years ago
123malin
2e4196f647
add new api for Paddle2.0: nonzero, index_selct, roll, cross ( #23176 )
5 years ago
Yibing Liu
1b5122ba07
Add variance computing layer for tensor ( #23770 )
...
* Add variance computing layer for tensor
* Format input data types
* Remove unnecessary expand operation
* Some fixes in doc
5 years ago
danleifeng
222a5137b3
Add new tensor in API2.0: max,min,t,eye,log1p ( #23228 )
...
add new tensor: max,min,t,eye,log1p; test=develop
5 years ago
guofei
73f421f782
Add new API : randn ( #23211 )
...
* Add new API : randn
test=develop
* Add new API : randn
test=develop
* Add new API : randn
test=develop
* Add new API : randn
test=develop
* aAdd new API : randn
test=develop
* Add new API : randn
test=develop
* Add new API : randn
test=develop
* Add new API : randn
test=develop
* Add new API : randn
test=develop
* Add new API : randn
test=develop
* Add new API : randn
test=develop
* Add new API : randn
test=develop
5 years ago
wawltor
8188d83be3
Fix some sample codes in api2.0,include zeros, pow, mul, ones_like, zeros_like
...
In those ops, some api has execute run error, fix those op, and format some sample code.
5 years ago
Zhong Hui
03e737aca7
Add new norm api, support frobenius norm and p-order vector norm. ( #23716 )
...
* Add new norm api, support frobenius norm and p-order vector norm. test==develop
* combine test files, add more attr checks. test=develop
5 years ago
GaoWei8
ff0ab75662
polish tensor.where codes and english document ( #23687 )
5 years ago
wawltor
f26f7c3603
Add some error meesage and dtyp, dtyep check for some ops ( #23762 )
...
Those ops include,scale, sum, sums,unique_with_counts,unique,
wherre, add error message and test case
5 years ago
liuwei1031
b61aaa2c10
add logsumexp op, test=develop ( #23585 )
5 years ago
liuwei1031
2fd728a978
add new dot op( #23418 )
5 years ago
Zhang Ting
4773e3f541
add dist op ( #23503 )
...
* add dist op
5 years ago
littletomatodonkey
1c08a2136e
test=develop, add addmm op ( #23384 )
...
add addmm op
5 years ago
GaoWei8
c068512f34
Implement a new C++ operator where and API tensor.where ( #23220 )
5 years ago
Pei Yang
42655ef721
Add full_like op. ( #23364 )
...
* add full_like op. test=develop
* add dygraph support. test=develop
* increase coverage. test=develop
5 years ago
wangchaochaohu
b76f3b2727
add test for fill_value Tensor and refine the doc of full Op ( #23524 )
5 years ago
silingtong123
009c049e82
Add randint op API ( #23337 )
...
* add randint op
5 years ago
David Lin
118e585b8c
rename op fluid.layers.matmul to paddle.matmul ( #23375 )
...
* rename op paddle.fluid.matmul to paddle.matmul
* modify original API fluid.layers.matmul,and add new API paddle.matmul
5 years ago
Chengmo
426912df5a
Add Index sample OP ( #23218 )
...
* add index_sample op
5 years ago
cc
9297f49e4b
[OP] Add randperm op ( #23292 )
5 years ago
wawltor
08e3d9c0dc
Add the matmul, elementwise_euqal, elementwise_sum ops to API2.0 ( #23437 )
...
* Add the matmul, elementwise_euqal, elementwise_sum ops to API2.0
* Fix the import meesage in common_ops_import
* Update the test cast for mm
5 years ago
wawltor
6577f91b74
Add the sum op to API 2.0, add some parameters for new api
...
* Add the sum op to API 2.0, test=develop
* Fix the import meesage in common_ops_import
5 years ago
Steffy-zxf
2d0933c378
Add two new ops paddle.tensor.mul(), paddle.tensor.pow() ( #23485 )
...
* add new op paddle.tensor.mul(x, y, x_num_col_dims=1, y_num_col_dims=1, out=None, name=None)
* add new op paddle.tensor.pow(input, exponent, out=None, name=None)
* add the aboved two new ops unittest (test api param out and name)
5 years ago
WuHaobo
c4d0305239
add tril op and triu op ( #23469 )
...
add tril op and triu op
5 years ago
wangchaochaohu
3eb12bd100
refine the usage of paddle.full test=develop ( #23484 )
5 years ago
LutaoChu
4c675a450f
Add 2 new ops: paddle.tensor.div() and paddle.tensor.add() to API2.0( #23352 )
...
* add new op paddle.tensor.div(x, y, out=None, name=None)
* add gpu and dygraph unittests.
* Performance optimization: scale op is not called when alpha=1.
* op error message optimization.
5 years ago
wawltor
0b092d05f1
Add the argmax op to API 2.0, and update some parameters
...
* Add the argmax op to API 2.0, test=develop
* Fix the compiler problem in arg_max op, test=develop
* Fix the import meesage in common_ops_import, test=develop
* Fix the default dtype of arg_min_max, test=develop
5 years ago
mamingjie-China
1a8d6ee371
add a new op paddle.sort() to API 2.0 test=develop ( #23470 )
...
* add a new op paddle.tensor.sort(), test=develop
* add a new op paddle.sort(), test=develop
5 years ago
wawltor
915341e3de
Add the zeros, ones, ones_like, zeros_like for api 2.0, test=develop ( #23471 )
...
Update the new api ops of creation ops to the api 2.0
5 years ago
Zhen Wang
56b50c97f8
Add allclose_op ( #23335 )
...
* Add allclose Op, and its function is analogous to numpy.allclose. It returns True if two tensors are elementwise equal within a tolerance.
5 years ago
kinghuin
948c57d84b
move sin, sqrt, tanh, atan to paddle.tensor.math and add a new parameter "out" ( #23387 )
...
* sin sqrt tanh atan add out, test=develop
* optimize doc, test=develop
* add dygraph test, test=develop
5 years ago
Wilber
9676ac1c5c
Add flip op. ( #23255 )
...
* add flip op
5 years ago
channings
a2e10930cf
update linspace, equal operators to API 2.0 ( #23274 )
...
* update linspace, equal operators to API 2.0, test=develop
* equal support higher performance CUDA kernel, test=develop
* update comment of equal&linspace operator, test=develop
* update comment of equal&linspace operator, test=develop
5 years ago
XiaoguangHu
8cf2c38ccb
fix error in paddle.tensor test=develop ( #23433 )
5 years ago
wangchaochaohu
17babe4d55
add full op API ( #23112 )
5 years ago
XiaoguangHu
baec0a0713
define alias in paddle dir and paddle.nn dir test=develop ( #23282 )
...
* define alias in paddle dir and paddle.nn dir test=develop
* define alias in paddle.nn.functional dir test=develop
* define alias in paddle.tensor.__init__.py test=develop
5 years ago
XiaoguangHu
194a22c5a8
reorganize the paddle api test=develop ( #23151 )
5 years ago