Skip to content

[0-size Tensor No.249] Add 0-size Tensor support for paddle.reverse API. - #72945

Merged
wanghuancoder merged 1 commit into
PaddlePaddle:developfrom
DanielSun11:fix_reverse
May 28, 2025
Merged

wanghuancoder merged 1 commit into
PaddlePaddle:developfrom
DanielSun11:fix_reverse

Conversation

@DanielSun11

Copy link
Copy Markdown
Contributor

PR Category

Execute Infrastructure

PR Types

Improvements

Description

image

通过执行时的debug log发现reverse底层的kernel并不是reversekernel而是调用的flip,因此需要修改flip。
无反向因此无需修改,前向kernel只有在cpu和gpu上有。
修改后paddleAPITest的回测结果。

image

pcard-67164

@paddle-bot

paddle-bot Bot commented May 26, 2025

Copy link
Copy Markdown

你的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.

@codecov-commenter

codecov-commenter commented May 26, 2025 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 50.00000% with 1 line in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (develop@705356a). Learn more about missing BASE report.

Files with missing lines Patch % Lines
paddle/phi/kernels/cpu/flip_kernel.cc 50.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             develop   #72945   +/-   ##
==========================================
  Coverage           ?   50.00%           
==========================================
  Files              ?        1           
  Lines              ?        2           
  Branches           ?        0           
==========================================
  Hits               ?        1           
  Misses             ?        1           
  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.

@wanghuancoder wanghuancoder left a comment

Copy link
Copy Markdown
Contributor

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 f1b794d into PaddlePaddle:develop May 28, 2025
@DanielSun11
DanielSun11 deleted the fix_reverse branch September 18, 2025 06:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants