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
6 years ago
WuHaobo
a57d63a0f2
Fix erf ( #26426 )
6 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
6 years ago
GaoWei8
1fbee267d4
remove scope in cudnn lstm ( #25188 )
6 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
6 years ago
Wilber
3ec0bcbbb8
[Bug] Fix prune for save_inference_model about transformer ( #25347 )
6 years ago
Sylwester Fraczek
abfdffa039
add use_mkldnn attribute to ops in dygraph ( #25773 )
6 years ago
wawltor
00e08ce07b
add the sigmoid, Sigmoid for the api 2.0 ( #26171 )
...
Update the sigmoid, Sigmoid layer for the api2.0
6 years ago
wangchaochaohu
b48ab36b76
fix the typo test=develop ( #26310 )
6 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
6 years ago
LielinJiang
e4033a06d5
add Class KLDivLoss and function kl_div ( #25977 )
...
* add Class KLDivLoss and function kl_div
6 years ago
liu zhengxi
daad625121
fix rnncell errmsg ( #26298 )
6 years ago
MRXLT
b2d41e2acd
fix unstack op doc ( #26043 )
6 years ago
zhupengyang
7a89a0a7be
hardshrink and Hardshrink: add class, threshold default 0.5 ( #26198 )
6 years ago
wangchaochaohu
ba574c8ec3
refine the usage of numpy element fetch for Ops test=develop ( #26194 )
6 years ago
zhupengyang
faf83a7af2
paddle.mean: add attr axis, keepdim ( #26147 )
6 years ago
pangyoki
13b80d9bea
fixed imperative module in doc example code ( #26149 )
...
* fixed imperative module in doc example code
* fixed static module
* solve conflict
6 years ago
LutaoChu
b6d14d9d07
add deprecated decorator, remove alias for cumsum op ( #26104 )
...
add deprecated decorator, remove alias for cumsum op
6 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
6 years ago
zhupengyang
2214394edc
softmax: refine doc; input->x ( #25976 )
6 years ago
Leo Chen
9c6112104e
Fix prelu for compatibility with saved model of old version ( #26052 )
...
* fix prelu for compatibility with saved model of old version
* reshape alpha
6 years ago
Adam
1893cd6bb8
Add oneDNN relu6 op ( #26037 )
...
* Add oneDNN relu6 op
* Lint fixes
6 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.
6 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
6 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
6 years ago
wangchaochaohu
0dc485e6fe
refine the value parameter's Tensor support of fill_constant Op test=… ( #25986 )
6 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
6 years ago
yaoxuefeng
224620071b
add new flatten op test=develop ( #25393 )
6 years ago
Shibo Tao
c8d0d1419b
add paddle.utils.deprecated. ( #25912 )
...
* add paddle.utils.deprecated.
* add docstring. test=develop
* add alias paddle.utils.deprecated. test=develop
* rm deprecated in python/paddle/fluid/annotations.py. test=develop
* 1. check version before warning. 2. bug fix. test=develop
* bug fix. test=develop
* use paddle.fluid.require_version. test=develop
* fix doc
* fix doc. test=develop
* fix doc. test=develop
* bug fix. test=develop
* use packaging.version. test=develop.
* enhance doc. test=develop
* add compare_version function. test=develop
* add version.py. test=develop
* remove packaging. test=develop
* move compare_version to deprecated.py. test=develop
* remove print. test=develop
* fix. test=develop
* fix. test=develop
* fix. test=develop
* fix. test=develop
* inline. test=develop
* fix. test=develop
6 years ago
wangchaochaohu
ff717d5158
Add support for tuple of concat Op test=develop ( #25800 )
6 years ago
Zhang Ting
2d24f56a7a
avoid data transfer, test=develop ( #25810 )
6 years ago
wawltor
595a719795
Update the api for the compare_ops
...
Update the code for the compare_ops, update the api and doc
6 years ago
wangchaochaohu
fc6fed3283
(Variable --->Tensor) refine the OP doc for API2.0 ( #25737 )
6 years ago
wangchaochaohu
32b9577b2a
refine the split op for API 2.0 test=develop ( #25320 )
6 years ago
tangwei12
caa90a6510
Integrated Trainer of Parameter Server (API add `fluid.contrib.layers.sparse_embedding` only) ( #22957 )
...
* Integrated Trainer of Parameter Server
6 years ago
zhupengyang
0ca1bb56df
refine docs of rand, randn, randint, randperm, zeros_like, arange ( #25633 )
6 years ago
wangchaochaohu
1e4ab728fb
refine the concat Op for API 2.0 test=develop ( #25307 )
6 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
6 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
6 years ago
Zhang Ting
a1350744eb
register fp16 kernel, test=develop ( #25630 )
6 years ago
mapingshuo
5453a912fe
add fp64 support in sequence_pool, test=develop ( #25662 )
...
add fp64 support in sequence_pool, test=develop
6 years ago
Leo Chen
1ab4101d6c
add ci check for changing op-related api without core.ops, test=develop ( #25596 )
...
* add ci check for changing op-related api without core.ops, test=develop
* generate api_source_md5 file when build, test=develop
* add failed example, test=develop
* add failed example, test=develop
* handle exception, test=develop
6 years ago
wangchaochaohu
2092660c43
Ones op for API 2.0: remove the device and out parameters ( #25497 )
6 years ago
wangchaochaohu
4a44ffdd24
refine the eye Op for API 2.0 test=develop ( #25295 )
6 years ago
zhupengyang
5a2d15a1d0
arange API: start default is 0, end default is None ( #25452 )
6 years ago
Shibo Tao
71c71e684c
fix logical_* ops' doc ( #25479 )
...
* fix doc of logical_* op.
* fix doc of op pow.
* fix comment syntax error9D
* fix operator reciprocal demo.
* fix logical_* ops' doc. 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
6 years ago
Shibo Tao
a2f141c099
fix reciprocal op doc( #25498 )
6 years ago
zhupengyang
f8eccb0b1c
zeros_like API: remove device; input -> x ( #25413 )
6 years ago
zhupengyang
25029254bc
randn API: remove out, devive, stop_gradient; add name ( #25409 )
6 years ago
wangchaochaohu
bdc2c2dba8
full Op:remove device, out and stop_gradient parameter for API 2.0 test=develop ( #25257 )
6 years ago
wangchaochaohu
0b2ec49ff9
refine the linspace Op for API 2.0 test=develop ( #25284 )
6 years ago
ceci3
52be62c5ae
fix instance norm in dy ( #24717 )
...
* fix bn & in in dy, test=develop
* update instance_norm,test=develop
* fix bugs,test=develop
* add more case in unittest,test=develop
* fix,test=develop
* fix,test=develop
6 years ago
zhupengyang
eb3173e2b6
rand API: remove out, device, stop_gradient; add name ( #25246 )
6 years ago
Feiyu Chan
e3223ad704
fix nce sample code for python3, test=develop ( #25103 )
...
fix nce sample code for python3 compatability.
6 years ago
wawltor
d44ba589f3
Fix some doc apis example,scale ops
...
Fix the doc example api for the scale op
6 years ago
Kaipeng Deng
74468bf428
add mish op. ( #24565 )
...
* add mish op. test=develop
6 years ago
Yang Zhang
6d6efafeeb
Add `matrix_nms_op` ( #24400 )
...
* Add `matrix_nms_op`
test=develop
* Make ci happy
test=develop
* Exit early when no detection
test=develop
* Fix license year
test=develop
* Output index as well
test=develop
* Match nms2 lod behavior and add `return_index` flag
test=develop
* Make CI happy
test=develop
* Fix wording
test=develop
6 years ago
danleifeng
064d0ce386
fix check_type bug and example code in hash api; test=develop ( #25253 )
6 years ago
Zhou Wei
c701588b14
add base class of LearningRateEpochDecay, and API: MultiStepDecay, and API: StepDecay ( #24821 )
...
* add new API: MultiStepDecay, a new learing rate strategy, test=develop
* add new API: MultiStepDecay, a new learing rate strategy,test=develop
* add new API: MultiStepDecay, a new learing rate strategy,test=develop
* add base class of LearningRateEpochDecay, and MultiStepDecay, and StepDecay, test=develop
* fix doc to add coverage,test=develop
6 years ago
WuHaobo
6bf7df475c
Fix English doc of the activation OPs, such as exp, rsqrt, abs....... ( #25258 )
6 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>
6 years ago
FlyingQianMM
3b28629ee8
fix dtype error in retinanet_target_assgin example codes. test=develop ( #25091 )
6 years ago
Leo Chen
fa657b3dbb
fix bug of prelu when rank not equal 4, test=develop ( #25067 )
...
* fix bug of prelu when rank not equal 4, test=develop
* fix prelu inference, test=develop
* fix api, test=develop
* fix shape when mode is chennel, test=develop
* remove debug code, test=develop
* add unittest, test=develop
6 years ago
Leo Chen
c7a63908b0
replace some logging.warn() with warings.warn(), test=develop ( #25025 )
6 years ago
liym27
f16e277859
[Dy2Static]Convert var.shape stmt and Convert the return variables of Tensor-dependent 'if' staments to Tensor if it not ( #24911 )
...
* Support int and long: int or long -> six.integer_types.
* Modify test_tensor_shape: fix bug and modify comment.
* Support convert_var_shape to convert var.shape stmt
* Modify code in ifelse_simple_func.py because don't support return non-Tensor in Tensor-dependent 'if' stament currently.
* Convert the return variables of Tensor-dependent 'if' staments to Tensor if it not. test=develop
6 years ago
wawltor
9a2c1aedcc
Fix the elementwise_div op broadcast failed in some shape
...
Fix the bug for elementwise_div op, when the first var is scalar; Use the shape 1 replace the -1 in shape.
6 years ago
Aurelius84
6be0ee159e
Support LoDTensorArray in reverse_op ( #24797 )
...
* Support LoDTensorArray in reverse_op test=develop
* polish en doc and unittest code test=develop
* refine sample code test=develop
* add example of LoDTensorArray test=develop
* fix typo test=develop
6 years ago
whs
4c01d6d53e
Enhance checking in some operator. ( #24473 )
6 years ago
FlyingQianMM
a359cade74
rewrite the sigmoid_focal_loss code example ( #24889 )
...
* rewrite the sigmoid_focal_loss code example. test=develop
* fix spelling mistake in comments of code example.test=develop
6 years ago
wangchaochaohu
f8ac6c2c58
fix fp16 support of assgin Op and squeeze Op test=develop ( #24862 )
6 years ago
Aurelius84
6db0e2b1a9
[Dy2stat] Support len syntax ( #24638 )
...
* [dy2stat] Support len
* add convert_call func
* refine code test=develop
6 years ago
Bai Yifan
c417f991c1
fix teacher_student_sigmoid_loss dtype check, test=develop ( #24586 )
6 years ago
Leo Chen
9fd1aad6e7
Support NHWC in Pool2D, test=develop ( #24240 )
...
* support NHWC in Pool2D, test=develop
* add unittest, test=develop
* fix unittest, test=develop
* fix typo, test=develop
* follow comments, test=develop
* refine comments, test=develop
6 years ago
FDInSky
08e9cf4af8
update interpolate & upsample api's doc ( #24553 )
...
* test=develop update interpolate & upsample api
6 years ago
jinyuKING
6ca44cbaa3
API/OP(sequence_first_step, sequence_last_step, sequence_mask, beam_search, beam_search_decode) error message enhancement ( #24590 )
6 years ago
liym27
b3ac1470c5
Support create LoDTensorArray and return LoDTensorArray in control flow ( #24609 )
...
* Support to create LoDTensorArray in control flow (cond and while_loop)
* Fix bug: return LoDTensorArray in while_loop
* Change code in list_transformer.py to accommodate the new features.
6 years ago
Guo Sheng
fe8d006f7e
API/OP(sequence_expand_as) error message enhancement ( #23712 )
...
* API/OP(sequence_expand_as) error message enhancement.
test=develop
Co-authored-by: FrostML <380185688@qq.com>
6 years ago
liu zhengxi
fff9faae72
API(dynamic_gru, chunk_eval, BeamSearchDecoder) error message enhancement ( #24513 )
...
* dynamic_gru err_msg enhancement, test=develop
* chunk_eval err_msg enhancement and fix crf_decoding output type, test=develop
* BeamSearchDecoder err msg enhancement, test=develop
* fix doc for chunk_eval, test=develop
* refine lod err msg for chunk_eval, test=develop
6 years ago
liym27
615a8bfcf4
Support int32 int64 and fix bug ( #24407 )
...
* Compatible int32 and int64 for attr in op slice/strided_slice. test=develop
* Polish code in nn.py test=develop
* Fix bug: set the same dtype for the inputs of elementwise_add. test=develop
* Convert int32 to int64 in slice op to avoid data overflow. test=develop
* Convert int32 to int64 in strided_slice_op to avoid data overflow. test=develop
6 years ago
lilong12
a13a4dbc7b
Improving error reporting messages for ops ( #24438 )
...
* improve error reporting message
6 years ago
Cindy Cai
86ca31ab58
English API Docs Optimization Part 1 ( #24536 )
...
* test=develop, test=document_fix
* test=develop, test=document_fix
Co-authored-by: swtkiwi <1208425345@qq.com>
6 years ago
ruri
ea2c498712
Fix err message ( #24507 )
...
* fix error message, test=develop
6 years ago
chajchaj
e5a624935f
Enhance error message of cross_entropy_op, sigmoid_cross_entropy_with_logits_op ( #24485 )
...
* error message of cross_entropy_op, test=develop
* fix bug : can't use platform::errors::InvalidArgument in HOSTDEVICE, test=develop
* fix bug: recovery the check_variable_and_dtype for rank_loss and bpr_loss, test=develop
6 years ago
xujiaqi01
c2103c4844
fix error check ( #24483 )
...
* fix error check of stack and space_to_depth
* test=develop
6 years ago
swtkiwi
f5c6dd6def
test=develop ( #24522 )
6 years ago
Yibing Liu
a9520db24e
Format error message for ops ( #24482 )
...
* Format error message for ops, test=develop
* Fix check in sequence_expand, test=develop
6 years ago
hutuxian
7f85dfeb18
Upgrade Error Message for AucOP & MultiplexOP ( #24458 )
6 years ago
danleifeng
d98e1182a1
fix check and error message for flatten hash is_empty op ( #24434 )
...
fix check info for flatten hash is_empty op; test=develop
6 years ago
liu zhengxi
417b576c34
API(dynamic_lstm, dynamic_lstmp) error message enhancement ( #24450 )
...
* update err msg for dynamic_lstm and dynamic_lstmp, test=develop
6 years ago
wangchaochaohu
53bdee64e6
add tensor support for gaussian_random_op test=develop ( #24389 )
6 years ago
qingqing01
da4a1db7bb
Refine error message in some OPs ( #24443 )
...
test=develop
6 years ago
WuHaobo
1c00732dd0
Polish PADDLE_ENFORCE of unfold_op ( #24423 )
6 years ago
wawltor
d0ef94798d
Fix the elementwise_ops axis bug, add the warning log for paddle 2.0
...
Fix the elementwise_ops axis bug, make elementwise_ops has the same the op function for override ops
6 years ago
Chen Weihang
05d20e5793
API/OP (Some SL API) error message enhancement ( #24441 )
...
* polish some sl api error message, test=develop
* polish python input check of stride slice, test=develop
* fix unittest bugs, test=develop
6 years ago
zhang wenhui
621a4085b9
enhance cvm bpr_loss adam adagrad adamax ftrl error message, test=develop ( #24452 )
6 years ago
Li Fuchen
e58619295e
OP(rank_loss, similarity_focus, squeeze) error message enhancement ( #24448 )
...
* enhance rank_loss error message, test=develop
* enhance similarity_focus error message, test=develop
* enhance squeeze error message, test=develop
6 years ago
wangguanzhong
abb49df26f
Enhance yolo_box & yolov3_loss ( #24370 )
...
* add scale_x_y for yolo_box, test=develop
* refine eps in iou_similarity, test=develop
6 years ago
mapingshuo
d1bb76a2f7
fix error log, test=develop ( #24419 )
...
* fix error log: resahpe, range, reverse.
6 years ago
FDInSky
7fedf26b87
add linear interpolate operator ( #23357 )
...
* test=develop add linear interpolate operator
6 years ago
Xing Wu
4af3ec0f8a
fix rnn check_type list error ( #24346 )
...
* fix rnn check_type list error
* tigger ci, test=develop
* update modify, test=develop
6 years ago
Huihuang Zheng
8a1a2af82e
Add Assert Op ( #24280 )
...
1. To make ProgramTranslator to support `assert` grammar, this PR adds `assert` python API and C++ code.
2. Fix a bug: graph_pattern_detector.h #include <gtest/gtest_prod.h> but didn't declared dependency at CMakeLists, which can cause single build failure.
3. Refactoring `Formatter` in print_op to make it reusable and reuse the formatter to print in assert op.
6 years ago
guofei
fed2204517
Skip the process of copying LoDTensorArray in loop_vars in while_loop ( #24271 )
...
目前在while_loop的执行过程中,loop_vars中的变量在每次的循环中都会进行拷贝,但是LoDTensorArray类型的变量在while循环体中已经完成了读/写的操作,即完成了更新,此时在进行拷贝属于冗余的操作,故该PR跳过每次循环中loop_vars中LoDTensorArray类型的变量的复制过程。
在PaddleCV/ocr_recognition/atention模型的预测过程中进行性能测试:
|性能|with this PR|without this PR|提升|
|---|---|---|---|
|速度|4957.4ms|4978.47ms|0.4%|
6 years ago
Feiyu Chan
420707c26e
API/OP (margin_rank_loss, nce, row_conv, positive_negative_pair) erro… ( #24246 )
...
* API/OP (margin_rank_loss, nce, row_conv, glu, positive_negative_pair) error message enhancement, test=develop
* add unittest for glu, test=develop
6 years ago
liym27
ac9a7eeea4
[Dy2Stat]Support list pop ( #24250 )
...
* Replace dygraph_to_static_func with @declarative or program_translator.get_func in test_list.py
* Add comments in ConditionalBlock.
* Support list pop last item.
* Support pop the i-th item.
* Support an empty tensor array as Input in assign op and set the kernel type is float.
6 years ago
Xing Wu
fff5cfa353
Fix error info ( #23891 )
...
* fix error info for rnn related api
* passed local test, test=develop
* double check the code
* double check the code, test=develop
* update 'shape' check in RNNCell, test=develop
* add long dtype to RNNCell
* fix long type in python3
Co-authored-by: XingWu01 <wuxing@iie.ac.cn>
6 years ago
Yi Liu
89c76a5342
fix bug of load op in issue#24252 ( #24253 )
...
test=develop
6 years ago
Li Fuchen
5dc069d050
OP(warpctc, add_position_encoding, scaled_dot_product_attention) error message enhancement ( #24261 )
...
* enhance add_position_encoding error message, test=develop
* enhance warpctc & scaled_dot_product_attention error message, test=develop
* modified error message and ctest of scaled_dot_product_attention, test=develop
6 years ago
Leo Chen
381492fca3
add try finally, test=develop ( #24243 )
6 years ago
yongqiangma
74803f5190
add unbind python api ( #24141 )
...
* add unbind pyhon api. test=develp
6 years ago
zhongpu
61d19a8e1c
fix if logic in dygraph, test=develop ( #24208 )
6 years ago
GaoWei8
ec00d11204
fix lod_reset check dtype ( #24133 )
...
test=develop
6 years ago
FDInSky
e72832adb4
fix generate_proposals ( #23797 )
...
* test=develop fix generate_proposals
6 years ago
Guo Sheng
663eca451d
Fix dygraph dropout seed. test=develop ( #24177 )
6 years ago
Chen Weihang
9b851ba216
[dy2static] Add print transformer and unify print format ( #24068 )
...
* add print transformer & unify print format, test=develop
* remove using of dygraph_to_static_func, test=develop
* remove python stdout capture, test=develop
* fix compatibility problems for PY2, test=develop
* fix detail error, test=develop
* fix type analysis bug, test=develop
* fix print tuple compatible error in PY2, test=develop
* replace get_func to declarative, test=develop
* fix detail bug, test=develop
* fix some detail problems, test=develop
* change visit_call in print transformer, test=develop
6 years ago
Kaipeng Deng
3e962aecc1
fix kldiv_loss sample code diff. test=develop test=document_fix ( #23660 )
6 years ago
Zhang Ting
f5c08c3f4d
set int64 for Output(Length) of sequence_pad, test=develop ( #24161 )
6 years ago
hong
a8eac7da61
fix warpctc bug in dygraph mode; test=develop ( #24119 )
6 years ago
HappyAngel
896bda0c98
python API(get_tensor_from_selected_rows and tensor_array_to_tensor)error message enhance, test=develop ( #23636 )
6 years ago
Zhong Hui
9ec9fc0f36
fix the set dtype bug of uniform_random op,support set the dtype
...
fix the bug in inferVartype in the uniform_random op, add the support the set of dtype
6 years ago
lijianshe02
a398464e77
API/OP (affine_channel, group_norm, layer_norm, random_crop, unpool, … ( #24118 )
...
* API/OP (affine_channel, group_norm, layer_norm, random_crop, unpool, log_loss) error message enhancement test=develop
6 years ago
0YuanZhang0
a164b10d05
API/OP error message enhancement ( #23717 )
...
* test=develop
6 years ago
Guo Sheng
54a47cd271
Add tracks_own_finished to Decoder to avoid mismanagement of the finished state in dynamic_decode. ( #23664 )
...
test=develop
6 years ago
Guo Sheng
da803415cf
Make layers.reshape/expand/slice in dygraph support var inputs. ( #22920 )
...
* Make layers.reshape/expand/slice in dygraph support var inputs.
Make transpose support size 0.
test=develop
* Update layers.expand and layers.slice to support var inputs.
test=develop
6 years ago
yongqiangma
89cf4f90ec
lod_rank_table error message enhance ( #23613 )
...
* lod_rank_table error message enhance. test=develop
6 years ago
liu zhengxi
8e555ba650
OP(pad, pad2d, pad_constant_like) error message enhancement ( #23882 )
...
* enhance pad.* error message, test=develop
6 years ago
gfwm0502
455ed26708
Modify English documents of while and while_loop ( #23934 )
...
test=develop test=document_fix
6 years ago
GaoWei8
e9289e8c22
enhanced lod_append, lod_reset english doc ( #23803 )
6 years ago
kinghuin
53fb0e92cc
fix compare and logical ops cond/out parameter doc bug, test=develop ( #23862 )
...
fix compare and logical ops cond/out parameter doc bug,correct the dtype message
6 years ago
GaoWei8
0be4b04d13
Api (lod_append) error message enhancement ( #23541 )
6 years ago
huangjun12
8af85922d0
Error message enhancement of 6 op ( #23759 )
...
* enhance error message test=develop
* fix CI test of 3 op test=develop
* fix bug caused by the diff of long type in py2 and py3, test=develop
6 years ago
Zhong Hui
361c6ccc01
OP error message enhancement of l2_normalize, matmul, mean, etc
...
* fix error message of l2_normalize, matmul, mean, etc.
* add the test case for those ops
6 years ago
chenhaoze
b7d185d6ca
OP clip, merge_lod_tensor, convert/elementwise error message enhancement ( #23742 )
...
* OP clip, merge_lod_tensor, convert/elementwise error message enhancement. test=develop
6 years ago
gfwm0502
a756360263
OP/API (While/while_loop/DynamicRNN) : Error Message Enhancement ( #23896 )
...
As the title
6 years ago
Double_V
b4daea13f4
API/OP (center_loss, fluid.one_hot, prroi_pool, roi_pool, ctc_greed_decoder) error message enhancement ( #23794 )
...
* error message enchanced, test=develop
* error message enchanced for APIs, test=develop
* error message enhanced for roi_pool, test=develop
* update added code, test=develop
* update fluid/input.py, test=develop
* update fluid/input.py ,test=develop
* fix code style, test=develop
* fix lower converage, test=develop
* error message enhanced for roi pool, test=develop
6 years ago
gfwm0502
af149f2595
OP(compare/get_places/shrink_rnn_memory) error message enhancement ( #23780 )
...
As the title.
6 years ago
Qinghe JING
476294183c
fix bug in reduce op ( #23795 )
...
* fix bug in reduce op test=develop
* fix bug in reduce op test=develop
6 years ago
liu zhengxi
7b522183c0
API (create_parameter, create_global_var) error message enhancement ( #23623 )
...
* error message enhancement create_parameter create_global_var, test=develop
* use six.PY2 to use long, test=develop
* fix input dtype for create_parameter, test=develop
6 years ago
wangguanzhong
93aa66902d
enhance the error message, test=develop ( #23646 )
...
* enhance the error message of box_coder, test=develop
* enhance error message in box_decoder_and_assign
* enhance error message of collect_fpn_proposals
* enhance errror message of distribute_fpn_proposals
* enhance error message of multiclass_nms, test=develop
6 years ago
Liufang Sang
9549b78691
OP Normal, Uniform, Xavier Initializer, smooth_l1, mean_iou error message enhancement ( #23751 )
...
* enhance error message test=develop
* enhance error message test=develop
* change to INOUT_CHECK test=develop
6 years ago
yaoxuefeng
5b69242fab
modify datanorm op test=develop ( #23030 )
6 years ago
wawltor
17ec3ab23e
Fix the scale fp16 dtype support for scale op, delete the fp16 test caseraise for scale
...
Fix the scale fp16 dtype support for scale op, and delete the test case for fp16 case
6 years ago
123malin
2e4196f647
add new api for Paddle2.0: nonzero, index_selct, roll, cross ( #23176 )
6 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
6 years ago
Bai Yifan
4231d84077
enhance some op/api error message ( #23768 )
...
* enhance error message, test=develop
6 years ago
FlyingQianMM
a93f333527
fix sample code diff for OP(retinanet_detection_output, retinanet_target_assign), fix `gamma` default value for OP(sigmoid_focal_loss) ( #23744 )
...
* fix sample code diff for OP(retinanet_detection_output, retinanet_target_assign), fix default value for OP(sigmoid_focal_loss). test=develop
* fix float value. test=develop
* add int type for gamma and alpha.test=develop
6 years ago
kinghuin
dd3ae0236a
optimize compare and logical ops error info, add test case for this ops
...
* optimize compare and logical ops error info
* add out and cond dtype test
6 years ago
yongqiangma
afb2cb7c9c
lod_tensor_to_array error message enhance. ( #23615 )
...
* lod_tensor_to_array error message enhance. test=develop
6 years ago
mamingjie-China
7c3fa5ff27
fix doc bug in cast OP, change 'float15' to 'float16' in support dtypes
...
raw doc: bool, float15, float32, float64, int8, int32, int64, uint8.
new doc: bool, float16, float32, float64, int8, int32, int64, uint8.
6 years ago
wawltor
f3d7db98f1
Add the support of bool list for assign_value op ( #23774 )
...
* Add the support of bool list for assign value, test=develop
* Fix the assign op test case for bool dtype, test=develop
6 years ago
xiaoting
a9fe09f85a
polish error message ( #23696 )
...
* polish error message, test=develop
6 years ago
Yuan Shuai
529795655c
API/OP (clip_by_norm/clip) error message enhancement ( #23603 )
...
* error message enhance for clip_by_norm. test=develop
* fix clip_by_norm. test=develop
* fix clip error message. test=develop
6 years ago
zhongpu
2beb6eacba
fix if logic in dygraph ( #23728 )
...
* fix if logic in dygraph, test=develop
* fix bug, test=develop
6 years ago
LielinJiang
dfe2f94993
Enhance some op error message ( #23711 )
...
* enhance error msg. test=develop
* print invalid argment
* update comment, test=develop
* fix enforce not meet specification
* fix enforce not meet specification, test=develop
6 years ago
Steffy-zxf
ac4da77aa6
update error info of ops,add some test cases for raise message ( #23750 )
...
1. update error info of the ops (abs, acos, asin, atan, ceil, cos, exp, floor, log, pow, reciprocal, round, rsqrt, sin, sqrt, square, tanh)
2. add the unittests of the above refered ops (test error info)
6 years ago
mamingjie-China
17588bbeed
API(has_inf, has_nan, cumsum, fsp_matrix, increment) error message enhancement, test=develop ( #23769 )
...
* API(argsort, argmax, argmin, cast, diag) add error message,and the same time add the test cases for those apis.
6 years ago
Huihuang Zheng
1d3b0134ca
Error Message Enhancement ( #23483 )
...
This PR enhances error messages of several API/OPs:
ParallelExecutor (python && C++)
Executor (python && C++)
StaticRNN (python)
IfElse (python)
cond (python)
split_lod_tensor (python && C++)
6 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
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
ceci3
cd1de0e2c5
API/OP error message enhancement ( #23691 )
...
* error enhance,test=develop
* update,test=develop
* update type, test=develop
* replace inout_check, test=develop
6 years ago
zhupengyang
2787944c2b
Ops(relu6/selu/soft_relu/softshrink/stanh/swish/thresholded_relu/hard_shrink/hard_sigmoid/hard_swish/hsigmoid/maxout) error message enhancement ( #23718 )
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
liym27
fbdf77917e
fix example code of api data/switch_case to keep cn-doc and en-doc consistent ( #23670 )
6 years ago
FlyingQianMM
b4be5ef5ec
OP(retinanet_detection_output, retinanet_target_assign, sigmoid_focal_loss, deformable_roi_pooling) error message enhancement. test=develop ( #23726 )
6 years ago
FDInSky
0a878be817
modify some op for dyg rcnn ( #23648 )
...
* test=develop modify some op for dyg rcnn
6 years ago
zhupengyang
5b3dd80633
Op(prelu) error message enhancement ( #23616 )
6 years ago
GaoWei8
517929f148
Op (reorder_lod_tensor_by_rank) error message enhancement ( #23552 )
6 years ago
wangchaochaohu
3ea6899f8b
API(fluid.layers.array_read/array_write) error message enhancement ( #23568 )
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
Wilber
286c2e0ede
error message enhancement for py_func op. ( #23565 )
...
error message enhancement for py_func op.
6 years ago
zhupengyang
7b648ad1a5
Op(relu) error message enhancement ( #23510 )
6 years ago
zhupengyang
5d970b586b
Op(leaky_relu) error message enhancement ( #23627 )
6 years ago
Zhen Wang
84cd45f674
Solve the conflict of ops with the same name, test for CI. ( #23573 )
...
* solve the conflict of ops with the same name. test=develop
6 years ago
wangguanzhong
c2f5a3ad34
enhance the error message of roi_align, test=develop ( #23649 )
6 years ago
wangchaochaohu
f39899a43d
API(create_tensor) error message enhancement ( #23571 )
6 years ago
Kaipeng Deng
b465bb0de7
fix adaptive_pool2d/pool3d error message. test=develop ( #23658 )
6 years ago
zhupengyang
17bee1d9a0
Op(brelu) error message enhancement ( #23606 )
6 years ago
Huihuang Zheng
a82ce2b1bb
API/OP (ConditionalBlock) error message enhancement ( #23480 )
...
API/OP (ConditionalBlock) error message enhancement (#23480 )
6 years ago
wangchaochaohu
81e8fd4a3e
API(fluid.layers.array_length) error message enhancement ( #23547 )
6 years ago
wangguanzhong
6bb8206d03
enhance the error message of box_clip, test=develop ( #23638 )
6 years ago
liym27
8987946fe2
Api/Op (select_input/select_ouput) error message enhancement. ( #23445 )
6 years ago
Kaipeng Deng
d7e549f568
fix yolov3_loss gt_score check in dygraph. test=develop ( #23634 )
6 years ago
GaoWei8
66cae9157e
Op (lod_reset) error message enhancement ( #23499 )
6 years ago
liym27
4cbed3a3f6
API (layers.data/fluid.data) error message enhancement ( #23427 )
...
* Api (fluid.data/layers.data) error message enhancement. test=develop
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
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
6 years ago
wangchaochaohu
29c4fae112
Tensor value support ( #23491 )
...
* add support for value tensor support of fill_constant Op
6 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
6 years ago
Tao Luo
0b583235f5
Revert "Solve the conflict of ops with the same name. ( #23199 )" ( #23494 )
...
This reverts commit abe3e6906d .
test=develop
6 years ago
Zhen Wang
abe3e6906d
Solve the conflict of ops with the same name. ( #23199 )
...
* solve the conflict of ops with the same name. test=develop
6 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
6 years ago
liym27
03deb41d73
API (switch_case) error message enhancement. test=develop ( #23429 )
6 years ago
liym27
cd348dc467
API (case) error message enhancement. test=develop ( #23428 )
6 years ago
YuHaoXiang
ee58ad62b6
import core in rnn.py ( #23394 )
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
Kaipeng Deng
21d95be0db
Add inplace abn op ( #22806 )
...
* add inplace_abn_op. test=develop
6 years ago
wangchaochaohu
2fe0758f67
fix the doc of fill_constant test=develop ( #23336 )
6 years ago
xujiaqi01
3a45767d49
add fleet pslib pull and push sparse op and push dense op ( #23139 )
...
* add fleet pslib pull and push sparse op and push dense op
* test=develop
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