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
GaoWei8
20eed5401a
Change fluid.layers.where‘s C++ operator name ( #23250 )
6 years ago
liym27
6af480ca33
Support int64 for op assign_value. test=develop ( #23179 )
6 years ago
Aurelius84
d6f72c4fcc
Add parameter(learning_rate) in NoamDecay ( #23156 )
...
* Add parameter(learning_rate) in NoamDecay test=develop
6 years ago
Aurelius84
cc8ca8cea9
Polish error Info in while_loop ( #23183 )
...
* Polish error Info in while_loop test=develop
6 years ago
Zeng Jinle
acfc9b8a70
Reader sequential and inference partial feed ( #22699 )
...
* sequential reader stage 1, test=develop
* fix ut, test=develop
* fix iterable=False reset bug, add some logs and polish code, test=develop
* inference feed partial data, test=develop
* Turn on keep_order=True for test, test=develop
* enhance ut to test more cases, test=develop
* test commit for reverting
* Revert "test commit for reverting", test=develop
This reverts commit 80aef42ef52ba1ee79627d6f663a624ec4f12f58.
* add ut of merged and unmerged results, test=develop
* add more uts for coverages and add en doc of api, test=develop
* follow comments, test=develop
* change note style, test=develop
6 years ago
Zhang Ting
0d8f40d2b2
remove init_on_cpu and force_init_on_cpu APIs, test=develop ( #22202 )
6 years ago
Aurelius84
9ef7f6e898
support to modify dict and list in while_loop ( #23083 )
...
* support to modify dict and list in while_loop test=develop
* polish code test=develop
6 years ago
liym27
91a2627251
fix bug in select_input: set var type of output to be the same as input. test=develop ( #23076 )
6 years ago
Feiyu Chan
01ab8a0619
add approximation for gelu, test=develop ( #22961 )
...
add approximation for gelu, default value is False (only kernel with eigen is added, remove code for computing gelu with MKLDNN temporarily)
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
yaoxuefeng
29a7a52d38
Fix instag ( #22632 )
...
* update
* update test=develop
* update compile set test=develop
* update compile set test=develop
* update test=develop
* update test=develop
* update test=develop
* update compile setting test=develop
* update compile setting test=develop
* update run demo test=develop
* update test=develop
* update test=develop
* fix test=develop
* update test=develop
* update test=develop
* update test=develop
* update test=develop
* update test=develop
* update test=develop
* update test=develop
* update test=develop
* update test=develop
* update format test=develop
* update format test=develop
* update style test=develop
* update style test=develop
* change style test=develop
* change style test=develop
* change style test=develop
* add dataset unittest test=develop
* update test=develop
* update for record test=develop
* udpate style for record test=develop
* update for record test=develop
* update for record test=develop
* update for record test=develop
* fix format test=develop
* update test=develop
* update test=develop
* update test=develop
* update test=develop
* update test=develop
* update test=develop
* update test=develop
* update test=develop
* update test=develop
* update test=develop
* update test=develop
* update test=develop
* update test=develop
* update test=develop
* update test=develop
* fix compile warning test=develop
* add attr default test=develop
* add unittest test=develop
* fix style test=develop
* fix style test=develop
* change out_val_ifempty to out_val_if_empty test=develop
6 years ago
wawltor
1daa66559f
Fix the elementwise_min API BUG, use the elementwise_min replace elementwise_max. ( #22880 )
...
In elementwise_min api doc has the error, all the api just use the elementwise_max op, we just correct the doc.
6 years ago
tianshuo78520a
433cef03e5
fix typo word ( #22784 )
6 years ago
FlyingQianMM
88776e40b9
fix SyntaxError in examples in retinanet_target_assign English API, test=develop ( #22774 )
6 years ago
songyouwei
b813c948f0
support control flow cond in dygraph mode ( #22693 )
...
* dygraph support cond op
test=develop
* unittest coverage
test=develop
* fix coverage
test=develop
* fix for coverage
test=develop
* refine TypeError msg
test=develop
* remove restrict
test=develop
6 years ago
songyouwei
60aaa7158b
dygraph support while_loop op ( #22714 )
...
* dygraph support while_loop op
test=develop
* refine assign
test=develop
6 years ago
Huihuang Zheng
1b561da1f7
Change API doc example code to python3 style print ( #22735 )
...
As the title
6 years ago
mamingjie-China
a5b0758ff7
fix the doc in elementwise_add elementwise_sub elementwise_mul elementwise_div
...
fix the doc in elementwise ops,add the override function in the doc
6 years ago
tianshuo78520a
d2ba91aad1
fix typo words ( #22653 )
6 years ago
liym27
17a6b50fe3
support num_flatten_dims=-1 of API fc. ( #22634 )
...
* support num_flatten_dims=-1 of API fc. test=develop
* fix name of class Test* and add CUDAPlace test. test=develop
6 years ago
zhouwei25
d86007775f
fix py_func bug when out is list and add unittest case ( #22595 )
6 years ago
xiaoting
3f0ca61a82
fix noam decay example, test=develop,test=document_fix ( #22557 )
6 years ago
guofei
9ed59da443
Modify english document and unittest of while_loop ( #22615 )
...
Modify english document and unittest of while_loop
6 years ago
guofei
614a2a4f98
modify English document while_loop ( #22573 )
...
As the title.
6 years ago
FDInSky
e28833a80e
Fix doc of detection's img_info param ( #22458 )
...
* test=develop fix doc of detection's img_info param
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
guofei
3a59a7a11f
Make assign op support LoDTensorArray and modify while_loop API ( #22309 )
...
This PR makes assign op support LoDTensorArray and enable the loop_vars in
while_loop to support tuple or list.
6 years ago
Tao Luo
6b7bb6b54a
change check_type_and_dtype to check_variable_and_dtype ( #22465 )
6 years ago
songyouwei
99f5907e02
Fix layer & dygraph circular dependent ( #22334 )
...
* fix circular dependent
* try import layers.nn from dygraph
test=develop
6 years ago
Li Fuchen
51e147a130
fix the en doc and example code of warpctc ( #22325 )
...
* Fixed warpctc, test=develop
* Set lod level of sequence_unpad's output to 1 in compile time
test=develop
* fix the en doc and example code of warpctc, test=develop, test=document_fix
6 years ago
Leo Chen
d4bdbf8cf0
Polish nn code, test=develop ( #22237 )
...
* refine code, test=develop
* reuse contain_var, test=develop
6 years ago
123malin
985bceac53
Bug fix for sparse recorder ( #21969 )
...
* test=develop, bug fix for sparse recorder
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
Zhang Ting
e587bc62f9
remove useless code, test=develop ( #22111 )
6 years ago
mapingshuo
ccac636d5e
add example for reshape op ( #22129 )
...
* add example for reshape op
6 years ago
zhongpu
cf475f95df
Remove FC in dygraph, modify FC to Linear in sample code ( #22082 )
...
* modify fc to linear in sample code, test=develop
* remove FC, test=develop
* remove warnings, test=develop
* drop fluid/imperative/README.md , test=develop
* change fc to linear, test=develop
* polish code style, test=develop
6 years ago
Double_V
6ea3809143
Support prroi_pool_op with Tensor and LoDTensor rois ( #20649 )
...
1. Add a new input named batch_roi_nums for prroi_pool_op. batch_roi_nums includes the number of roi for each image in batch when rois is Tensor. This information is saved in rois's lod when rois is LoDTensor.
2. add grad check to prroi_pool_op and solve unnormal X grad diff in CPU.
6 years ago
liym27
de56887bef
add Note in the doc of old control flow ops. test=develop,test=document_fix ( #22108 )
6 years ago
Feiyu Chan
14aebc7a95
add erf op ( #21785 )
...
* add erf op and python interface.
* add fp16 support for erf op.
* add unitests for erf op and its python interface.
6 years ago
Huihuang Zheng
1ce6ab9cc6
Refine doc of data based on requirement. ( #22098 )
6 years ago
Qinghe JING
288b1e75de
Fix segmentation fault bug in reduce ops ( #22079 )
...
* fix dim=[] bug in reduce ops
6 years ago
liym27
7d8d45991a
control flow: support optimizer called ( #21851 )
...
* append optimize op in the grad block of current block if current block is in control flow. test=develop
* add conditional grad op when optimizer used in control flow. test=develop
* add comment and modify typo. test=develop
* fix append_backward to support control flow. test=develop
* add test. test=develop
* fix copy_var_to_parent_block and conditional_block_grad. test=develop
* fix bug: revert to append conditional_block_grad vars to sub grad block. test=develop
* fix bug: revert to assign var to parent block even if var already is in parent block
* fix bug: consider outputs is empty. test=develop
* move _rename_grad_ out. test=develop
* modify code according to reviews from Huihuang. test=develop
* modify code according to reviews from Jinle. test=develop
6 years ago
ShenLiang
3fab86ffa6
add package for centerloss ( #21806 )
6 years ago
Liufang Sang
5b8837897d
add shape description in accuracy api doc ( #22011 )
...
* add shape description in accuracy api doc test=develop
* fix details test=develop
* fix details test=develop
6 years ago
Yibing Liu
c1fea3e3e2
Fix example in log_loss doc ( #22052 )
...
* Fix example in log_loss doc, test=develop
* Use none for unknown dim, test=develop, test=document_fix
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
ceci3
95d79b6d00
update error log for batch_norm_grad ( #22017 )
...
* update error information about batch_norm_grad
* update bn,test=develop
6 years ago
ShenLiang
b68f4e006d
Fix the doc of scatter_nd ( #22015 )
...
fix the doc of scatter
6 years ago
Leo Chen
33f1306753
update layers used in mnist dygraph model, test=develop ( #21947 )
...
* update layers used in mnist dygraph model, test=develop
* fix import issue, test=develop
* add dygraph utils, test=develop
* add unittest, test=develop
6 years ago
hutuxian
27decacb8a
fix aucop stat shape ( #21846 )
...
* fix stat shape back in global auc scenario
* add UT to cover global auc
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
FDInSky
6b9fbcf3ad
Update iou_similarity op to support non-normalized bbox ( #21671 )
...
Update iou_similarity op to support non-normalized bbox
6 years ago
guofei
46f9184aff
Modify the while_loop API ( #21844 )
6 years ago
Leo Chen
a25418b32c
Set dtype of compare op's output to bool ( #21864 )
...
* add unittests, test=develop
* set dtype of compare op to bool, test=develop
6 years ago
hong
957e182a90
revert a+b axis change; test=develop ( #21821 )
6 years ago
Leo Chen
c96f06f2f6
add unary operator __neg__, test=develop ( #21787 )
...
adds unary operator __neg__ for VarBase in dygraph mode, and for Variable in static graph mode.
6 years ago
zhouwei25
ecb2419e5c
increase the explanation doc of py_func ( #21631 )
...
* increase example code of py_func, fix some wrong description of English API doc
6 years ago
Kaipeng Deng
943a44492b
yolo_box OP add Attr(clip_bbox). ( #21620 )
...
* yolo_box OP add Attr(clip_bbox). test=develop
6 years ago
zhouwei25
e92d113590
fix bug that tuple(Variable) is converted to list(Variable) uncorrectly ( #21687 )
6 years ago
Leo Chen
9c481e12ba
Patch math method for VarBase using auto-generated op functions ( #21656 )
...
* patch math method for varbase using auto-generated op functions, test=develop
* clean code that handles batch_size, test=develop
* follow comments, test=develop
* follow comments, test=develop
* code clean, test=develop
6 years ago
Huihuang Zheng
99331fa113
Fix current block in math_patch_op ( #21189 )
6 years ago
Huihuang Zheng
a1a5adc9b8
Refine English Doc of cond API ( #21609 )
...
As the title
6 years ago
guofei
835ea12cde
Control flow API: while_loop ( #21276 )
...
Add basic while_loop
6 years ago
Huihuang Zheng
1dcf6a7212
Add Much Complex Test and Fix Bugs for Control Flow cond API ( #21532 )
...
Add tests to use dy/dx to make sure the gradient values calculated by the control flow backward is correct. Also fixed bugs detected by those tests.
Fix bugs:
1. Unlike sum_op, optimizer ops don't allow uninitialized input tensor. But in conditional_block_grad_op, since the conditional_block may not run, the output gradient tensor may be uninitialized, which will cause the optimizer op error. To fix it, we should let optimizer ops support uninitialized input like sum_op or assign the uninitialized gradient to 0 when the conditional_block_grad_op doesn't run. I found there are about 10+ optimizer ops. **To be simpler, I just assign output gradient of the conditional_block_grad_op to 0 in this PR**. But it can be further explored whether we can make optimizer ops like sum_op to support uninitialized input tensor because theoretically we can speed up without the assigning in conditional_block_grad_op.
2. Infer parameter shapes during append_backward. I didn't know that all our parameters are in global block. When op_desc is inferring shapes at the sub-block, it may not know the shape of gradients of parameters whose shape information is at global block. I fixed it by inferring shapes of gradients from forward var.
This PR also did some code clean up:
1. Print the var name when sgd_op catches shape error so that it is easier to debug
2. Fix a typo: dicta -> dict
6 years ago
Feiyu Chan
2057df7ac0
add fluid.layers.gelu & doc ( #21515 )
...
Add a python interface for Gelu.
Add documentation for fluid.layers.gelu.
6 years ago
wangchaochaohu
29c3844585
fix doc typo test=develop ( #21566 )
6 years ago
danleifeng
657053f262
remove elementwise x_should_larger_than_y restriction;test=develop ( #21517 )
6 years ago
hong
08483a6819
Add dygraph linear warm up decay ( #21186 )
...
* dygraph mode support linear lr warm up; test=develop
* add unitest for linear warmup; test=develop
* add input type check; test=develop
* fix type check assert error; test=develop
* change type error; test=develop
6 years ago
lilong12
de46b15951
Unify the rank of prelu alpha to 4, corresponding to [N, C, H, W], except for the all mode
6 years ago
Leo Chen
cdd46d7e02
Split VarBase from Python Variable for Dygraph ( #21359 )
...
* test=develop, fix docker with paddle nccl problem
* don't expose numerous Tensor.set(), test=develop
* fix condition, test=develop
* fix float16 bug, test=develop
* feed should be Tensor or np.array, not Variable or number, test=develop
* use forcecast to copy numpy slice to new array, test=develop
* remove float16-uint16 hacking, test=develop
* add variable method to varbase and refactor to_variable to support return varbase
* support kwargs in varbase constructor
* add VarBase constructor to support default python args
* refine varbase initial method
* reset branch
* fix ut for change VarBase error info to PaddleEnforce
* cherry is parameter change before
* overload isinstance to replace too many change of is_variable
* rm useless files
* rm useless code merged by git
* test=develop, fix some ut failed error
* test=develop, fix test_graph_wrapper
* add some tests, test=develop
* refine __getitem__, test=develop
* add tests, test=develop
* fix err_msg, 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
ruri
2445fef386
Fix density sample ( #21506 )
6 years ago
lilong12
0bc8bdf724
set dim[0] to -1 if dim[0] < 0 during compiling for c_allgather op ( #21402 )
...
* set dim[0] to -1 if dim[0] < 0 and remove assertion to runtime, test=develop
* modify ENFORCE message, test=develop
* add validation for x.shape[0] > 0, test=develop
* add ut, test=develop
6 years ago
Aurelius84
4bf115b42d
Fix AdamOptimizer and Scale sample code Bug ( #21478 )
...
* fix adam sample code bug test=document_fix
* fix sample code bug in scale test=document_fix
6 years ago
ruri
94bef03539
Revert "Add masked select api ( #21172 )" ( #21456 )
...
This reverts commit 007c997572 .
6 years ago
ruri
3706ea67f8
fix sample code in density prior box
6 years ago
liym27
beec87b911
fix bug in example codes of API case and switch_case. test=develop,test=document_fix ( #21477 )
6 years ago
hutuxian
7e68bc896b
refactor AUC OP and add its CUDA Kernel ( #21336 )
...
* refactor AUC OP and add its CUDA Kernel
* the layout of global auc doesn't change
6 years ago
wawltor
dbbe6e9cb6
fix the device supported of the op unique and unique_with_counts. ( #21395 )
...
* fix the device supported of the op unique and unique_with_counts.
test=develop
test=document_fix
* Fix the precision of test in the op of unique and unique_with_counts.
test=develop
test=document_fix
6 years ago
Huihuang Zheng
32959e031e
Add English Document for cond API ( #21452 )
...
Add English doc for cond
6 years ago
Jie Fang
5e813b53c5
nhwc optimization for batchnorm ( #21090 )
7 years ago
Huihuang Zheng
630be31952
Fix Cond Bug for Nested Control Flow ( #21340 )
...
* Commit before merging develop
test=develop
* Backup after working with Huihuang logs
* Commit before deleting Huihuang debug loggings
* Commit before debug
test=develop
* Fix bug commit
test=develop
* Backup of fixing bugs
test=develop
* Clean up code
test=develop
* Fix a bug in sum_op
test=develop
7 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
7 years ago
Kaipeng Deng
ebfb720a63
add Adam beta1/beta2 support Variable ( #21234 )
...
* add Adam beta1/beta2 support Variable. test=develop
7 years ago
ruri
007c997572
Add masked select api ( #21172 )
7 years ago
Kaipeng Deng
67c836fb5c
batch_norm momentum support variable ( #21246 )
...
* batch_norm momentum support variable. test=develop
* fix format. test=develop
* add batch_norm momentum variable example. test=develop
* move MomentumTensor to training branch. test=develop
* split example. test=develop
* fix doc. test=develop
* fix PADDLE_ENFORCE ci. test=develop
* fix format. test=develop
7 years ago
Zeng Jinle
b97fc16d21
fix lod_reset bug, test=develop ( #21392 )
7 years ago
hutuxian
47a82e38e3
Support data_norm gpu kernel ( #21325 )
...
* support data_norm_op run in CUDA
* add two parameters sync_stats & summary_decay_rate
* add UT
7 years ago
lilong12
41d13209d7
add the framework support for distfc ( #21197 )
...
* add the framework support for distfc and ut, test=develop
* fix the implementation of shard_index_op, test=develop
7 years ago
wangchaochaohu
6514f52e46
fix the fill_constant op precious problem ( #21322 )
...
* fix the fill_constant op precious problem test=develop
7 years ago
lijianshe02
7fcaa39b36
fix Print_op input dtype list error test=develop ( #21326 )
7 years ago
Yi Liu
0fd1281ef8
fix bug of issue #21259 ( #21287 )
...
pass the argument `allow_out_of_range` of one_hot op to c++ back end.
7 years ago
ShenLiang
1f39a9f17e
fix the bug of scatter_nd, test=develop ( #21257 )
7 years ago
lijianshe02
382cf5d7e3
add input type and input data type check for Print_op test=develop ( #21250 )
...
* add input type and input data type check for Print_op test=develop
7 years ago
liym27
b0fc822747
Add control flow api: case ( #21114 )
...
* add control flow API: case. test=develop
* delete 'raise TypeError' in _error_message() and return a string. test=develop
* polish API document. test=develop
7 years ago
yaoxuefeng
b5d8ba8394
fix data_norm op to avoid impractical normalization result test=develop ( #21152 )
...
* fix auc drop first commit test=develop
* update datanorm op
* update datanorm with enforce test=develop
* update test=develop
* update format test=develop
* update format
* update format test=develop
* add unit test test=develop
* update unit test test=develop
* update format test=develop
* update format test=develop
* update API description test=develop
* update API description test=develop
* update format test=develop
* fix codes as comments test=develop
* fix description as comments test=develop
* fix description as comments test=develop
* update codes.. test=develop
7 years ago
Zhang Ting
9cbe7bccba
modified error message and API doc for channel_last supported Op ( #21002 )
...
* modified error message for conv and conv_transpose, test=develop
* modified doc of conv and conv_transpose op, test=develop
* modified the expression for error message, test=develop
* modified error message for group_norm op, test=develop
* modified detail of Attr(data_format) or Attr(data_layout)
* add ValueError in API doc for maxout op, test=develop
7 years ago
liym27
9247528252
Control flow API: switch_case ( #21103 )
...
* add API switch_case. test=develop
add Nest
* modify code according to reviews:
1.Attr(branch_index) support 'uint8' and 'int64' besides 'int32'.
2.remove useless code.
test=develop
* replace fluid.layers.data with fluid.data and polish API document. test=develop
7 years ago
ruri
aeb887911f
Refine edit distance cn ( #21121 )
7 years ago