Skip to content

Conversation

@co63oc
Copy link
Contributor

@co63oc co63oc commented Jul 23, 2025

PR Category

Operator Mechanism

PR Types

Bug fixes

Description

因为torch返回结果为随机值,增加单测是测试返回shape
如果source numel 不为0,按source Holder构造返回数据,如果x numel为0,使用0填充返回

torch 测试代码

import torch x = torch.ones([20]) ret = x.set_(torch.ones([0, 3]), 0, [20], [2]) print(ret) tensor([-8.7228e-09, 1.7631e+00, 0.0000e+00, 0.0000e+00, 1.8491e+31, 3.2181e+21, 1.0961e+18, 3.9173e-02, 7.5650e+28, 4.5927e+27, 2.6912e+20, 1.1718e-32, 1.0832e+24, 3.0981e+32, 3.2181e+21, 8.0424e+20, 1.0927e+24, 6.5952e+22, 7.7140e+31, 1.2695e+31]) 

PaddleAPITest是精度错误,在PaddleAPITest修改配置 PFCCLab/PaddleAPITest#426
image

@paddle-bot
Copy link

paddle-bot bot commented Jul 23, 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 Jul 23, 2025
@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 77.77778% with 2 lines in your changes missing coverage. Please review.

Please upload report for BASE (develop@04080a8). Learn more about missing BASE report.

Files with missing lines Patch % Lines
paddle/phi/kernels/set_kernel.cc 77.77% 2 Missing ⚠️

❌ Your patch status has failed because the patch coverage (77.77%) 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 #74200 +/- ## ========================================== Coverage ? 77.77% ========================================== Files ? 1 Lines ? 9 Branches ? 0 ========================================== Hits ? 7 Misses ? 2 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.
@co63oc
Copy link
Contributor Author

co63oc commented Jul 23, 2025

/re-run all-failed

@co63oc
Copy link
Contributor Author

co63oc commented Jul 24, 2025

/re-run all-failed

@luotao1 luotao1 added the HappyOpenSource Pro 进阶版快乐开源活动,更具挑战性的任务 label Jul 24, 2025
@co63oc
Copy link
Contributor Author

co63oc commented Jul 24, 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

@DanielSun11 DanielSun11 merged commit 9c1b5c4 into PaddlePaddle:develop Jul 24, 2025
101 of 106 checks passed
@co63oc co63oc deleted the h50 branch July 26, 2025 06:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

contributor External developers HappyOpenSource Pro 进阶版快乐开源活动,更具挑战性的任务

4 participants