Skip to content

Conversation

@co63oc
Copy link
Contributor

@co63oc co63oc commented Jun 20, 2025

PR Category

Execute Infrastructure

PR Types

Improvements

Description

logsumexp axis指定维如果为0,返回-inf填充值,如果不为0,维度减少axis所在维

import torch
torch.logsumexp(torch.randn([2,0,3]), dim=1, keepdim=False)
#tensor([[-inf, -inf, -inf],
#        [-inf, -inf, -inf]])

torch.logsumexp(torch.randn([2,0,3]), dim=2, keepdim=False)
#tensor([], size=(2, 0))

PaddleAPITest测试通过
image

@paddle-bot
Copy link

paddle-bot bot commented Jun 20, 2025

你的PR提交成功,感谢你对开源项目的贡献!
请关注后续CI自动化测试结果,详情请参考Paddle-CI手册
Your PR has been submitted. Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

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

co63oc commented Jun 21, 2025

/re-run all-failed

1 similar comment
@co63oc
Copy link
Contributor Author

co63oc commented Jun 21, 2025

/re-run all-failed

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 993b1ed into PaddlePaddle:develop Jun 24, 2025
142 of 149 checks passed
@co63oc co63oc deleted the f31 branch June 30, 2025 10:30
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.

3 participants