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
6 years ago
wawltor
b822f74cd4
Add the error raise for some operators, add some test cases
...
Add the error raise for those cases
aassign isfinite linspace ones_like zeros_like zeros ones
6 years ago
wangchaochaohu
fb34bdb40c
API/OP(fill_constant) error message enhancement ( #23584 )
6 years ago
mamingjie-China
cdbe5707e9
API(argsort, argmax, argmin, cast, diag) error message enhancement
...
* API(argsort, argmax, argmin, cast, diag) error message enhancement, test=develop
6 years ago
liu zhengxi
eda7ff054b
Refine example code in en doc ( #23549 )
...
* refine example code in en doc, test=develop, test=document_fix
* update shape to make it meaningful, test=develop, test=document_fix
6 years ago
wangchaochaohu
f39899a43d
API(create_tensor) error message enhancement ( #23571 )
6 years ago
liym27
067134f1b3
API (Switch) error message enhancement. test=develop ( #23459 )
...
* API (Switch) error message enhancement.
* fix bug: dtype of out in api isfinite is set incorrectly. The dtype should be bool.
6 years ago
wangchaochaohu
29c4fae112
Tensor value support ( #23491 )
...
* add support for value tensor support of fill_constant Op
6 years ago
liym27
b7b0b3595b
Add unittest for transformer prediction in dygraph_to_static ( #23207 )
...
* Add unittest for transformer prediction in dygraph_to_static.
* fix bug in fill_constant api.
* Make transpose support size 0. test=develop
6 years ago
songyouwei
738c84644b
support tensor array create read write in dygraph ( #23200 )
...
* support tensor array create read write in dygraph
test=develop
* minor fix
test=develop
* support tensor_array_to_tensor
test=develop
* add while loop case and err msg
test=develop
* refine ut
test=develop
6 years ago
wangchaochaohu
2fe0758f67
fix the doc of fill_constant test=develop ( #23336 )
6 years ago
Leo Chen
488b2387e2
Feature/expand params in auto-generated pybind functions for dygraph operators ( #23181 )
...
* expand parameters, test=develop
* support resnet, test=develop
* fix resnet, test=develop
* support duplicable out, test=develop
* support ptb
* fix bugs, test=develop
* support null input, test=develop
* fix bugs, test=develop
* fix batchNorm is_test, test=develop
* refine code, test=develop
* follow comments, test=develop
* follow comments, test=develop
* follow comments, test=develop
* follow comments, test=develop
6 years ago
liym27
6af480ca33
Support int64 for op assign_value. test=develop ( #23179 )
6 years ago
Zhang Ting
0d8f40d2b2
remove init_on_cpu and force_init_on_cpu APIs, test=develop ( #22202 )
6 years ago
songyouwei
9203aaf185
fix unittest for coverage ( #23007 )
...
test=develop
6 years ago
liym27
44b1343aab
Support LoDTensorArray in stack/concat api for transformation of list dygraph_to_static ( #22987 )
...
* Support that the input(x) of stack api is a LoDTensorArray. test=develop
* Support that the input of concat api is a LoDTensorArray. test=develop
* Add tests to test stack/concat called in dygraph_to_static. test=develop
6 years ago
tianshuo78520a
433cef03e5
fix typo word ( #22784 )
6 years ago
tianshuo78520a
d2ba91aad1
fix typo words ( #22653 )
6 years ago
Guo Sheng
31b5464632
Add support for dynamic_decode(while) training. ( #22231 )
...
* Add support for dynamic_decode(while) training. test=develop
* Fix assign_op and tensor_array_read_write_op after solving conflict. test=develop
* Fix test_rnn_decode_api.py. test=develop
* Refine docs for apis in rnn.py. test=develop
* Adjust outputs of dynamic_decode. test=develop
* Remove the force_cpu update in assign_op. test=develop
* Remove the force_cpu update in assign_op. test=develop
* Make RNNCell.get_initial_states support batch_dim_idx argument. test=develop
* Rename _create_array_outof_while as _create_array_out_of_while in rnn.py.
test=develop
6 years ago
Tao Luo
6b7bb6b54a
change check_type_and_dtype to check_variable_and_dtype ( #22465 )
6 years ago
Leo Chen
d4bdbf8cf0
Polish nn code, test=develop ( #22237 )
...
* refine code, test=develop
* reuse contain_var, test=develop
6 years ago
Leo Chen
51cb918a05
update layers used in transformer dygraph model, test=develop ( #22051 )
...
* update layers, test=develop
* update layers for resnet, test=develop
* fix is_test attr, test=develop
* update cycle_gan, test=develop
* update reinforcement_learning, test=develop
* update ocr, test=develop
* fix bug, test=develop
6 years ago
mapingshuo
81030125a3
convert input vars' dtype for range op ( #22028 )
...
* convert dtype of vars for range op, test=develop
6 years ago
Leo Chen
310edc0d0c
Update layers used in ptb model to use auto-generated op functions in dygraph mode ( #21724 )
...
* update layers, test=develop
* fix input numpy, test=develop
* fix bugs, test=develop
* follow commments, test=develop
* update getitem, test=develop
6 years ago
wangchaochaohu
4c9b3dafa7
fill_constant_batch_size_like OP precious problem fix ( #21337 )
...
* fix fill_constant_batch_size_like_op precious problem test=develop
6 years ago
zhaoyuchen2018
b16274556a
Add dscending for argsort ( #21400 )
...
* Add ascending for argsort
* Refine api doc description.
* Refine descending description
* Add int32 logic to speedup when data is small size.
* Remove int32 opt as not support in python
6 years ago
wangchaochaohu
6514f52e46
fix the fill_constant op precious problem ( #21322 )
...
* fix the fill_constant op precious problem test=develop
7 years ago
Tao Luo
3976bbe2ce
add input type and dtype check template, and update some APIs check ( #21161 )
...
* add input type and dtype check template, and update some APIs check
* refine check template, and update some APIs check in nn.py
* update some APIs check in loss.py
test=develop
7 years ago
liym27
6802539a2e
support Tensor for split and concat, support -1 in num_or_sections, add check num_or_sections ( #20780 )
...
* improve split and concat op:
1. support Tensor for argument 'dim' in split op.
2. support Tensor for argument 'axis' in concat op.
test=develop
* redefine function GetDataFromTensor and set unknown output shape to - 1.
test=develop
* add check: Attr(sections) match Input(X). test=develop
* support Tensor for attr(sections) and attr(sections) can contain -1.
add check for attr(sections).
test=develop
* modify error message for concat and call Resize only when necessary. test=develop
7 years ago
liym27
ae4ddbc821
add fill_constant input(shape) dtype check. test=develop ( #20620 )
7 years ago
zhupengyang
01209b5161
add input type and dtype check for cast_op ( #20070 )
...
* add input type and dtype check for cast_op
test=develop
* fix annotation
test=develop
* support more data type
test=develop
* fix bug for fill_constant's error type
test=develop
* improve converage
test=develop
* improve converage
test=develop
7 years ago
zhupengyang
5e65c753ea
enhance input type chec for concat ( #20584 )
...
test=develop
7 years ago
hong19860320
f567214b6a
Fix the error message of zeros op ( #20476 )
...
* fix the error message of zeros op
test=develop
* Fix unittest of zeros op
test=develop
7 years ago
liym27
fc6ec3b9f6
fill_constant support Tensor; ( #20521 )
...
2. fix bug in backward.py: using fill_constant instead of fill_constant_batch_size_like
3. fix bug in ExpandGradOp.
test=develop
7 years ago
Guo Sheng
c7ae6c62cd
Fix the assign data check ( #20564 )
...
* Fix the assign data check. test=develop
* Fix test_assign_op.py. test=develop
7 years ago
Yiqun Liu
ce1b25cc8b
Polish the English documentation of sums ( #20495 )
...
* Refine the documentation of sums.
* Remove Chinese comments and update API.spec.
* Refine the description of input argument.
* Update API.spec.
test=develop
test=document_fix
7 years ago
hong19860320
512c0bb04d
refine the en api doc of ones, zeros, reverse, assign, increment, hsigmoid and create_py_reader_by_data ops ( #20343 )
...
* refine the en api doc of ones, zeros, reverse, increment, hsigmoid and create_py_reader_by_data ops
test=develop, test=document_preview, test=document_fix
* refine eng doc for hsigmoid and create_py_reader_by_data ops
test=develop, test=document_preview, test=document_fix
* update API.spec
test=document_fix
* Fix the parameter name axis of reverse op in eng doc
test=develop, test=document_fix
* Update API.spec
test=develop, test=document_fix
* Refine eng doc of zeros, ones, reverse and assign op
test=develop, test=document_fix
* Update API.spec for assign, ones, zeros and reverse
test=develop, test=document_fix
* Fix data type of reverse op in eng doc
test=develop, test=document_fix
* Update API.spec for reverse op
test=develop, test=document_fix
7 years ago
Guo Sheng
dfd1eee7f7
Add seq2seq api related code ( #19820 )
7 years ago
hong19860320
9707ded37e
Fix the error message of assign op ( #20508 )
...
* Fix the error message of assign op
test=develop
* Refine input type checking for assign op
test=develop
* Refine unittest of assign op
test=develop
7 years ago
zhupengyang
3997743a5b
add input type and dtype check, enhance shape error message for concat_op ( #20101 )
...
* add input type and dtype check, enhance shape error message for concat_op
test=develop
* enhance shape check
test=develop
* improve coverage
test=develop
7 years ago
zhupengyang
200cc5e2ad
fix APIs: cast, concat, tensor_array_to_tensor, argmin, argmax, argsort ( #20363 )
...
* fix APIs: cast, concat, tensor_array_to_tensor, argmin, argmax, argsort
test=develop
test=document_fix
7 years ago
wopeizl
6b612a2807
optimize the english description for APIs test=develop test=document_fix ( #20286 )
...
* optimize the english description for APIs test=develop test=document_fix
7 years ago
wangchaochaohu
508127b180
fix some en doc ( #20281 )
...
* fix some en doc test=develop test=document_fix
* fix new fluid.data API.spec test=develop test=document_fix
* fix typo test=develop, test=document_fix
* fix typo test=develop test=document_fix
* fix typo test=develop test=document_fix
* fix test=develop test=document_fix
* fix according review test=develop test=document_fix
* fix review test=develop test=document_fix
* fix according review advice test=develop test=document_fix
* fix the doc test=develop test=document_fix
* fix API.spec test=develop test=document_fix
7 years ago
liu zhengxi
e34fccbc48
update the api en doc ( #20307 )
...
* update the api en_doc of has_inf, has_nan, cumsum, double_buffer and mul, test=document_fix
* update the API.spec for apis, test=document_fix
7 years ago
wawltor
ade9bc04d3
Fix some english doc api, shenze tools group ( #20300 )
...
* test=document_fix
Fix english doc api, invloves the op of greater_equal,greater_than,less_equal,not_equal,
rank,rsqrt,diag,linspace,reduce_all,reduce_any,sign,where,zeros_like,unique_with_counts.
* Fix some format problem in the op of sign and greather_than.
test=develop
test=document_fix
* Fix the example of zeros_like, and update api.spec
test=develop
test=document_fix
7 years ago
Liufang Sang
53535b4f18
fix en api doc ( #20245 )
7 years ago
ShenLiang
c5cff9971a
fix doc of eye、gather_nd、scatter_nd、scatter_nd_add、center_loss ( #19990 )
...
* fix doc, test=document_fix test=document_preview
7 years ago
wangchaochaohu
9a76f3f916
Fill constant error message fix ( #20075 )
...
* fix the constant error message test=develop
* fix typo test=develop
* fix typo test=develop
* fix code style test=develop
* fix comment and bugs test=develop
* fix the bug test=develop
* fix and add unittest test=develop
* fix the typo test=develop
* add support for the fill_constant op test=develop
* add test for ci coverage test=develop
7 years ago
Bai Yifan
8394699dbb
add stop_gradient in range_api, test=develop ( #19484 )
7 years ago
wawltor
0019eb376a
Fix the error of op `ones_like` document,change the output variable
...
test=document_preview
test=develop
Fix the error of op `ones_like` document, change the output variable from x to out.
7 years ago
ShenLiang
4397cb318e
add eye op, kernel and unitest test=develop ( #18980 )
...
* add eye op,test=document_preview test=develop
* fix the API.spec, test=develop
* fix the document, test=document_preview test=develop
* add unitest for CI coverage, test=develop
7 years ago
石晓伟
9dbb62eeb9
Fix examples of API ( #18092 )
...
* fix logical APIs
test=develop
test=document_preview
* fix isfinite
* update matmul comments
* update API.spec
test=document_preview
test=develop
* update API.spec
test=document_preview
test=develop
* update API.spec
test=document_preview
test=develop
7 years ago
zhoukunsheng
d3b3443d10
add ones_like op ( #17388 )
7 years ago
xsrobin
47e2ef38e9
add "import paddle.fluid as fluid" to examples lack of it
7 years ago
wangchaochaohu
a9dc534f48
fix API example ( #18153 )
...
* API.spec test=develop
* update
* update test=develop
* update test=develop
* update
* update test=develop
* update test=develop
* update test=develop
* update test=develop
* update test=develop
* test=develop
* update
* update test=develop
* update test=develop
* fix test=develop
7 years ago
zhoukunsheng
0569ff78fa
Fix doc example for greater_equal, greater_than, less_equal, not_equal, rank, reduce_all, reduce_any, sign, where, diag ( #18167 )
...
* test=develop
fix greater_than, greater_equal, less_equal, not_equal, rank, reduce_all, reduce_any, sign, where, diag doc example
* test=develop
fix API.spec conflict
7 years ago
hong19860320
68dcb1bd7b
fix API examples of assign, reverse and array_write, etc. ( #17287 )
...
* fix API examples of assign, reverse and array_write
test=develop
* update API.spec
test=develop
* update API examples for array_length, array_read, array_write, assign, hard_sigmoid, hsigmoid, increment, ones, pow, reverse, uniform_random and zeros
* update API.spec for assign, reverse and array_write, etc.(#17287 )
* test=develop
7 years ago
wangchaochaohu
bd48950c7e
fix paddlepaddle API examples ( #17306 )
...
* API.spec test=develop
* update
* update test=develop
* update test=develop
* update
* update test=develop
* update test=develop
* update test=develop
* update test=develop
* update test=develop
* test=develop
* update
* update test=develop
* update test=develop
7 years ago
石晓伟
acbb4bf38d
update python API examples ( #17351 )
...
* update python APIs
test=document_preview test=develop
* update API.spec
test=document_preview
test=develop
* update merge_selected_rows
* update API.spec
test=document_preview
test=develop
* update API.spec
test=document_preview
test=develop
* fix the comment of less_than
test=develop
test=document_preview
* update API.spec
test=develop
test=document_preview
* update API.spec
test=develop
test=document_preview
* update API.spec
test=develop
test=document_preview
* update API.spec
test=develop
* update API
test=develop
7 years ago
Shuai Yuan
41f1186c6b
[DOC][PYTHON] Fix api docs, test=develop, test=document_preview ( #17629 )
...
* [DOC] Fix api docs, test=develop, test=document_preview
* [DOC] Fix api annotation: fluid.layers.tensor_array_to_tensor. test=develop, test=document_preview
* test=develop, test=document_preview
update MD5 of tensor_array_to_tensor
7 years ago
wopeizl
058f1f1e1b
fix the api example for create_global_var, create_parameter, SGDOptim… ( #17371 )
...
* fix the api example for create_global_var, create_parameter, SGDOptimizer, RMSPropOptimizer, MomentumOptimizer, LarsMomentumOptimizer, FtrlOptimizer
test=develop
* add example for adamoptimizer
fix API.spec
test=develop
* test=develop
* test=develop
7 years ago
lijianshe02
300bd7504d
fix api-doc related bugs test=develop test=document_preview ( #17360 )
...
* fix api doc according to the reviewer's comment test=develop
7 years ago
Yiqun Liu
cf5d271c5a
Fix examples of fluid.layers.sums and fluid.layers.DynamicRNN ( #17308 )
...
* Fix examples of fluid.layers.sums.
test=document_preview
* Correct the example of DynamicRNN and its functions.
test=develop
* Add 'import paddle.fluid as fluid' to examples.
test=develop
* Update API.spec.
test=develop
* Add space lines.
test=develop
* Update the API.spec.
test=develop
7 years ago
zhoukunsheng
1bfff02047
Add Diag Op( #17027 )
7 years ago
tensor-tang
71f0c6d5bd
fix api doc of hash, relu, concat, argmin, argmax, argsoft and all activations ( #17235 )
...
* fix api doc of hash, relu, concat, argmin, argmax, argsoft and all activations funcs with no attrs
test=develop
* refine doc example code
test=develop
* remove >>> in doc example
test=develop
* refine python code block
test=develop
* update API spec
test=develop
7 years ago
zhoukunsheng
380df8281f
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into zeros_like
7 years ago
zhoukunsheng
68f887aab3
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into zeros_like
7 years ago
zhoukunsheng
b2cdadd700
improve comment
7 years ago
zhoukunsheng
3c4f5f0368
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into linspace
7 years ago
lujun
1c9aaeebe0
move imperative to dygraph, test=develop
7 years ago
zhoukunsheng
874b5d8362
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into linspace
7 years ago
zhoukunsheng
263ff731eb
add more comment
7 years ago
zhoukunsheng
a55111b869
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into zeros_like
7 years ago
zhoukunsheng
848ec97ab3
test=develop
...
add zeros_like op
7 years ago
chengduo
999365149d
Add from six.moves import reduce ( #16435 )
...
test=develop
7 years ago
zhoukunsheng
43060084a4
test=develop
...
add linspace, modify interface comments in tensor.py, merge with develop branch
7 years ago
zhoukunsheng
8e9ebebcef
test=develop
...
add linspace op
7 years ago
whs
18779b5b8f
[Operator] Add range op. ( #15431 )
...
* Add range op.
test=develop
* Add more unitests.
test=develop
* Fix API.spec
test=develop
* Fix API.spec
test=develop
* Fix API.spec
test=develop
7 years ago
tensor-tang
9be825a982
polish the cast op doc ( #16078 )
...
* polish the cast op doc
test=develop
* follow comments
test=develop
* fix api.spec
test=develop
7 years ago
chengduozh
03f091a9d3
fix api doc
...
test=develop
7 years ago
minqiyang
315b133e67
Add single GPU support to imperative
7 years ago
minqiyang
09e2e66236
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into imperative_mnist
7 years ago
haowang101779990
66ea718452
en api improve format Dec 27
...
test=develop
7 years ago
minqiyang
5822f7f1d8
Polish code
...
test=develop
7 years ago
minqiyang
68e9b841ab
Add support for optimizer
7 years ago
Wu Yi
6e67d0fb78
layer fixes ( #14591 )
...
* layer fixes test=develop
* follow update test=develop
7 years ago
li099
df826de76e
revise tensor array to tensor op ( #14368 )
...
test=develop
8 years ago
li099
688ed60116
Add lod tensor array to tensor op ( #13990 )
...
* add lod tensor array concat
* add lod tensor array concat
* test=develop
* add lod tensor array concat
test=develop
* Fix API.spec
test=develop
* add lod tensor array concat
test=develop
* revise some bug of lod tensor array concat
test=develop
* add unittest for tensor array concat
test=develop
* change to tensor array to tensor
test=develop
* revise bug
test=develop
* revise a bug
test=develop
* revise a bug
test=develop
* revise a bug of python3
test=develop
8 years ago
Xin Pan
4625f83f92
better handle var type inference
...
avoid the default one that usually overwrites manually set ones
test=develop
8 years ago
Xin Pan
63b2e98f3d
Explain LoD and a few other concepts
...
test=develop
8 years ago
dzhwinter
a46e30aa6d
enhance isinf/isnan in tensor util, avoid copy back to cpu ( #12688 )
...
* "avoid copy back to cpu"
* "add infinity support"
* "fix ci"
* "add cpu macro"
* rerun ci; test=develop
* "fix api"
test=develop
* test=develop
* test=develop
* test=develop
* test=develop
* test=develop
8 years ago
minqiyang
99d3f08920
Add print_function for all python files
8 years ago
minqiyang
559d36328c
Apply 2to3 to current paddle main python code
8 years ago
Yibing Liu
9386ac0a40
Enhance cuda code & unittest for argsort_op
8 years ago
Yibing Liu
9c69fdf5c6
Merge branch 'develop' of upstream into argsort_dev
8 years ago
fengjiayi
e1a46bba59
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into some_small_fixes
8 years ago
tensor-tang
064ca35285
fix indentation error
8 years ago
tensor-tang
d5fb8fa778
Revert "Merge pull request #11628 from PaddlePaddle/revert-11102-mozga-intel/Sum_mkldnn_layout"
...
This reverts commit 4d8e8ee226 , reversing
changes made to d6a9f005c8 .
8 years ago
tensor-tang
90780e22ce
Revert "MKLDNN layout: Support for sum operator"
8 years ago
fengjiayi
e7faae0130
Refine assign layer
...
Give assign layer's second parameter 'output' a default value: None. If
it is None, the output variable will be created inside the layer.
8 years ago