Skip to content

Conversation

@DanielSun11
Copy link
Contributor

@DanielSun11 DanielSun11 commented Jul 18, 2025

PR Category

Operator Mechanism

PR Types

Bug fixes

Description

修复cond、lstsq、affine_grid、linear 不支持0-size的问题

  • linear
    将0sizeTensor reshape为[]报错
  • cond
    存在部分非法case
  • lstsq
    holder_ should not be null 以及部分输出tensor输出shpae不对
  • affine_grid
    index 0 is out of bounds for axis 0 with size 0

除了非法case,paddleapitest全部pass
pcard-67164

@paddle-bot
Copy link

paddle-bot bot commented Jul 18, 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.

@DanielSun11 DanielSun11 changed the title [0-size Tensor No. 104、108、151] Add 0-size Tensor support for cond、lstsq、affine_grid [0-size Tensor No. 104、108、151、187] Add 0-size Tensor support for cond、lstsq、affine_grid、linear Jul 18, 2025
@DanielSun11 DanielSun11 marked this pull request as ready for review July 18, 2025 09:19
@codecov-commenter
Copy link

codecov-commenter commented Jul 18, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (develop@35fcca3). Learn more about missing BASE report.

Additional details and impacted files
@@ Coverage Diff @@ ## develop #74112 +/- ## =========================================== Coverage ? 100.00% =========================================== Files ? 4 Lines ? 28 Branches ? 0 =========================================== Hits ? 28 Misses ? 0 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

co63oc commented Jul 21, 2025

affine_grid 测试为numpy error,已修改为抛出错误
image

#74129

配置已移除
PFCCLab/PaddleAPITest#354

@DanielSun11
Copy link
Contributor Author

/re-run all-failed

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 b91ce1d into PaddlePaddle:develop Jul 24, 2025
75 of 77 checks passed
@DanielSun11 DanielSun11 deleted the fix_0size_716 branch September 18, 2025 06:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants