Leo Chen
aa2a9b5d89
add bernoulli op ( #26511 )
...
* add bernoulli op
* fix cuda kernel and add unit test
* refine doc
* fix uniform
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
Zhou Wei
ce7d5263e6
[2.0API]Bind method for tensor and Variable ( #26416 )
...
* binding tensor method
* binding tensor method
* binding tensor method
* Binding methods for class Tensor and Variable
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
pangyoki
644dfd7dd5
Release Distribution base class and Normal, Uniform class ( #26355 )
...
* fixed static module
* solve conflict
* Add Distribution base class, Uniform class and Normal class
* release Distribution class and Normal, Uniform class
* Add Doc args explaination
* save distributions.py and process in distribution.py
* delete useless function in test_distribution
* Add NormalNumpy test class
* Add probs in NormalNumpy
* add distribution to paddle init
* Add Distribution base class and name attribute unittest
* Change Doc
* Change Doc
* adjust format
* Fixed Doc Code
* implement probs and change Variable to Tensor
* Add name for all functions and add name unittest
* support int datatype
* Add dynamic mode
* optimize test_distribution static and dygraph
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
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
ShenLiang
fd0051b488
add set default dtype, get default dtype ( #26006 )
...
* add set/get default dtype
5 years ago
wangchaochaohu
0b81d76310
[API2.0] add op for cudnn version query test=develop ( #26180 )
5 years ago
wangchaochaohu
bb11cbc250
[API2.0] add Device api (set_device and get_device)( #26103 )
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
Yang Zhang
617eb67f29
Upgrade `no_grad` decorator ( #25472 )
...
* Upgrade `no_grad` decorator
test=develop
- match torch decorator usage (i.e., with parenthesis)
- handle generator functions
- add `paddle.no_grad` alias
* Switch from `functools` to `decorator`
preserves signature
* Reword decorator usage note
5 years ago
pangyoki
cfa086bdc1
Remove original name for alias APIs ( #26195 )
...
* fixed static module
* solve conflict
* remove original name for alias API
5 years ago
Dong Daxiang
50a5bcfc9d
【paddle.fleet】paddle.fleet -> paddle.distributed.fleet. ( #26186 )
...
* move paddle.fleet to paddle.distributed.fleet
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
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
wawltor
595a719795
Update the api for the compare_ops
...
Update the code for the compare_ops, update the api and doc
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
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
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
Dong Daxiang
d5e40d1ba9
Paddle fleet distributed strategy ( #25379 )
...
* add paddle.fleet.DistributedStrategy for 2.0
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
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
qingqing01
43625bdabd
Add a high-level API with traning and inference into Paddle. ( #24293 )
...
* Merge hapi into Paddle
Hapi is a high level API for training and inference.
The main modules include Model, Loss, Metrics, Dataset.
Also includes common modules and models in NLP and computer vision, such as BERT, ResNet.
These modules are developed by:
0YuanZhang0, guoshengCS heavengate, LielinJiang, qingqing01, xyzhou-puck huangjun12, wangxiao1021, zhangyang.
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
zhangchunle
f62dfc6238
fs_wrapper add __all__ ( #24335 )
5 years ago
Yibing Liu
fb82d72c61
Move complex into dir incubate ( #24254 )
...
* Move complex into dir incubate, test=develop
* Fix imports, test=develop
* Fix docs, test=develop
* Forbid import functions from paddle.incubate directly, test=develop
5 years ago
0YuanZhang0
f800403fff
Manual seed API recover
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
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
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
Yibing Liu
720d18990c
Init complex number neural network ( #24018 )
...
* Init complex number neural network, test=develop
* Improve doc writing, test=develop
* Fix elementwise add & sub, test=develop
* Fix elementwise mul act, test=develop
* a) add ut for complex variable; b) remove arg act in elementwise_ops. test=develop
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
wangguanzhong
931cba2e64
add clamp api, test=develop ( #23273 )
...
* add clamp api, test=develop
5 years ago
0YuanZhang0
2a38f12382
ADD Manual seed op into paddle.framework ( #23537 )
...
* test=develop
Co-authored-by: wuxing03 <wuxing03@baidu.com>
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
Bai Yifan
477cb1fdb3
Add addcmul, test=develop ( #23411 )
...
* add addcmul, 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
zhongpu
1f8d8a5358
remove dygraph api to paddle.imperative, test=develop ( #23628 )
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
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
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
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
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
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
wangchaochaohu
17babe4d55
add full op API ( #23112 )
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
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
qingqing01
1a3eef026c
Enable users to create custom cpp op outside framework. ( #19256 )
...
* How to write custom op needs to follow framework OP spec.
* Package fluid_framework.so and headers into whl.
* Add paddle.sysconfig.get_include() and paddle.sysconfig.get_lib() to get include dir and lib dir.
* Export some C-APIs to merge OpInfo between core.so and custom_op.so.
* Add unit testing.
* Update API.spec.
5 years ago
silingtong123
da127d1110
Optimized error reporting information ( #19173 )
...
* test=develop,Optimized error reporting information
* test=develop,add importscipy unittest
* test=develop, rename the file and function
6 years ago
Yan Xu
d424e5b4c9
add launch mp distributed job py module test=develop ( #15620 )
...
* add launch mp distributed mode module test=develop
* delete unused file test=develop
* refine usage test=develop
* refine usage test=develop
* move distributed package test=develop
* add to whl package test=develop
6 years ago
minqiyang
e0d5f8a820
Move compat module to python/paddle
7 years ago
minqiyang
95e2d28659
Replace relative_import with absolute_import
7 years ago
Helin Wang
bcf7c36b0b
Make paddle.fluid no longer depends on paddle.v2
...
In this way we can build and test using WITH_FLUID_ONLY flag being set
to ON.
- move paddle.v2.dataset,reader to paddle.dataset,reader
- remove unused code (which depends on v2) in paddle.dataset,reader
7 years ago
Yancey
c4599d3e9a
Add version api ( #2985 )
...
* write versino.py
* add version py
* clean init py
* add istaged, major and etc... fields
* update
* update
* update
7 years ago
Yi Wang
e9549cbb78
Change "Baidu, Inc" into "PaddlePaddle Authors"
8 years ago
qijun
a1ba3f442f
format python code in python directory
8 years ago
zhangjinchao01
b72beee4f0
fix dash and space bug,
...
ISSUE=4586495
git-svn-id: https://svn.baidu.com/idl/trunk/paddle@1408 1ad973e4-5ce8-4261-8a94-b56d1f490c56
9 years ago