Skip to content

Conversation

@HydrogenSulfate
Copy link
Contributor

@HydrogenSulfate HydrogenSulfate commented Aug 11, 2025

PR Category

User Experience

PR Types

New features

Description

Pcard-75624

  • 新增paddle.range python API
  • 新增_C_ops.range_v2(range好像被arange占用了,使用range时编译会报错重复定义)

@zhwesky2010
Copy link
Contributor

zhwesky2010 commented Aug 15, 2025

其他一个APIpaddle.full_like 的问题

pir这个分支下也需要设置place

infoflow 2025-08-15 15-15-18

@HydrogenSulfate
Copy link
Contributor Author

其他一个APIpaddle.full_like 的问题

pir这个分支下也需要设置place

infoflow 2025-08-15 15-15-18

好的,我晚点一起加一下

@codecov-commenter
Copy link

codecov-commenter commented Aug 16, 2025

Codecov Report

❌ Patch coverage is 63.57143% with 51 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (develop@d7133ee). Learn more about missing BASE report.

Files with missing lines Patch % Lines
...nterface/infer_symbolic_shape/nullary_infer_sym.cc 0.00% 37 Missing ⚠️
paddle/phi/infermeta/nullary.cc 69.23% 8 Missing ⚠️
python/paddle/tensor/creation.py 87.50% 5 Missing ⚠️
paddle/phi/kernels/cpu/range_kernel.cc 96.66% 1 Missing ⚠️

❌ 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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

interfaces : paddle::dialect::InferSymbolicShapeInterface
traits : paddle::dialect::ForwardOnlyTrait

- op : range_v2
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个算子应该可以走动静统一,arange是因为兼容问题才分开配置的

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO:下个PR统一到ops.yaml里

Copy link
Member

@SigureMo SigureMo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTMeow 🐾

Copy link
Contributor

@XiaoguangHu01 XiaoguangHu01 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@HydrogenSulfate HydrogenSulfate merged commit a5d987e into PaddlePaddle:develop Aug 18, 2025
123 of 134 checks passed
@HydrogenSulfate HydrogenSulfate deleted the add_range branch August 18, 2025 11:56
Luckycheng222 pushed a commit to Luckycheng222/Paddle that referenced this pull request Aug 25, 2025
* 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants