Skip to content

[0-size Tensor No.321] Add 0-size Tensor support for mode - #73197

Merged
luotao1 merged 2 commits into
PaddlePaddle:developfrom
co63oc:e8
Jun 11, 2025
Merged

luotao1 merged 2 commits into
PaddlePaddle:developfrom
co63oc:e8

Conversation

@co63oc

@co63oc co63oc commented Jun 9, 2025

Copy link
Copy Markdown
Contributor

PR Category

Execute Infrastructure

PR Types

Improvements

Description

321 paddle.Tensor.mode

修改ModeKernel中判断是否包含0的部分
增加keepdim为True时, axis指定维度不能为0,torch中有同样判断
image
增加单测

PaddleAPITest错误为torch error
image

@paddle-bot

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

@paddle-bot paddle-bot Bot added the contributor External developers label Jun 9, 2025
@co63oc co63oc changed the title CI测试不review mode [0-size Tensor No.321] Add 0-size Tensor support for mode Jun 9, 2025
@luotao1 luotao1 added the HappyOpenSource Pro 进阶版快乐开源活动,更具挑战性的任务 label Jun 9, 2025
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 57.14286% with 3 lines in your changes missing coverage. Please review.

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

Files with missing lines Patch % Lines
paddle/phi/kernels/cpu/mode_grad_kernel.cc 0.00% 2 Missing ⚠️
paddle/phi/kernels/cpu/mode_kernel.cc 80.00% 1 Missing ⚠️

❌ Your patch status has failed because the patch coverage (57.14%) 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   #73197   +/-   ##
==========================================
  Coverage           ?   57.14%           
==========================================
  Files              ?        2           
  Lines              ?        7           
  Branches           ?        0           
==========================================
  Hits               ?        4           
  Misses             ?        3           
  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.

@DanielSun11 DanielSun11 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

@luotao1
luotao1 merged commit 03eed00 into PaddlePaddle:develop Jun 11, 2025
shanjiang7 pushed a commit to shanjiang7/Paddle that referenced this pull request Jun 12, 2025
@co63oc
co63oc deleted the e8 branch June 24, 2025 08: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.

5 participants