-
Notifications
You must be signed in to change notification settings - Fork 5.9k
[API Compatibility] add paddle.range
#74542
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[API Compatibility] add paddle.range
#74542
Conversation
Codecov Report❌ Patch coverage is ❌ Your patch status has failed because the patch coverage (63.57%) is below the target coverage (90.00%). You can increase the patch coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## develop #74542 +/- ##
==========================================
Coverage ? 63.57%
==========================================
Files ? 5
Lines ? 140
Branches ? 0
==========================================
Hits ? 89
Misses ? 51
Partials ? 0 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
| interfaces : paddle::dialect::InferSymbolicShapeInterface | ||
| traits : paddle::dialect::ForwardOnlyTrait | ||
|
|
||
| - op : range_v2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个算子应该可以走动静统一,arange是因为兼容问题才分开配置的
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO:下个PR统一到ops.yaml里
SigureMo
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
XiaoguangHu01
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
a5d987e
into
PaddlePaddle:develop
* fix index_elemwentwise_get_gard bug slice-check * enhance Tensor creation methods * add static test * fix UT * fix date * refine code * fix * fix UT * fix * fix BatchNormDoubleGradKernel * restore code * fix * fix * fix * fix for review * restore requires_grad setting * update 4 Tensor.new_xxx methods * fix name * use full instead of fill_constant * refine device * use full instead of fill_constant * fix * fix * fix string device * add pir mothods * update paddle.arange API * update code * add more UT * update paddle.range * use _get_paddle_place * fix * fix UT * update docstring * skip xpu test * fix * support out * fix xpu UT * fix 2022->2025 * update range docstring * fix builtin.range * skip UT for dcu * skip XPU * update symbolic shape UT for range --------- Co-authored-by: zhanghonggeng <[email protected]>


PR Category
User Experience
PR Types
New features
Description
Pcard-75624
paddle.rangepython API_C_ops.range_v2(range好像被arange占用了,使用range时编译会报错重复定义)