Skip to content

Conversation

@lshpku
Copy link
Contributor

@lshpku lshpku commented Jun 3, 2025

PR Category

Operator Mechanism

PR Types

Bug fixes

Description

paddle.dist(x, y) 实际上就是 (x op y).sum()(op可以是减法、pow等,sum也可以是min、max),原来的实现在 x op y 这步用了int下标,改成int64_t就好了;sum这步是调用reduce kernel,不用改

Pcard-85711

@paddle-bot
Copy link

paddle-bot bot commented Jun 3, 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.

Copy link
Contributor

@wanghuancoder wanghuancoder left a comment

Choose a reason for hiding this comment

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

LGTM

@wanghuancoder wanghuancoder merged commit 81ef31d into PaddlePaddle:develop Jun 4, 2025
49 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants