Skip to content

[0-size Tensor Job2 No.17-20、31-34] Add 0-size Tensor support for segment_max #73341

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

Merged
merged 2 commits into from
Jun 17, 2025

Conversation

co63oc
Copy link
Contributor

@co63oc co63oc commented Jun 15, 2025

PR Category

Execute Infrastructure

PR Types

Improvements

Description

17 paddle.geometric.segment_max
18 paddle.geometric.segment_mean
19 paddle.geometric.segment_min
20 paddle.geometric.segment_sum

31 paddle.incubate.segment_max
32 paddle.incubate.segment_mean
33 paddle.incubate.segment_min
34 paddle.incubate.segment_sum
paddle.incubate.* 算子和paddle.geometric.*相同

修改前向和反向,CPU/GPU 都使用impl
infermeta 没有修改

PaddleAPITest 测试numpy error, 其他通过
paddle.geometric.segment_max
GPU
image
CPU
image

其他算子相同

paddle.incubate.* 算子和paddle.geometric.*相同,只是增加deprecation 提示
image
python/paddle/incubate/tensor/math.py
image

@paddle-bot paddle-bot bot added the contributor External developers label Jun 15, 2025
@luotao1 luotao1 added the HappyOpenSource Pro 进阶版快乐开源活动,更具挑战性的任务 label Jun 16, 2025
Copy link
Contributor

@DanielSun11 DanielSun11 left a comment

Choose a reason for hiding this comment

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

LGTM

@luotao1 luotao1 merged commit e636f35 into PaddlePaddle:develop Jun 17, 2025
48 of 50 checks passed
@co63oc co63oc deleted the f2 branch June 30, 2025 10:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contributor External developers HappyOpenSource Pro 进阶版快乐开源活动,更具挑战性的任务
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants