Skip to content

[Accuracy diff No.146] Fix accuracy diff for paddle.Tensor.mean API - #73320

Merged
lshpku merged 1 commit into
PaddlePaddle:developfrom
NKNaN:mean-fix
Jun 19, 2025
Merged

lshpku merged 1 commit into
PaddlePaddle:developfrom
NKNaN:mean-fix

Conversation

@NKNaN

@NKNaN NKNaN commented Jun 13, 2025

Copy link
Copy Markdown
Contributor

PR Category

Execute Infrastructure

PR Types

Improvements

Description

根据 PaddleAPITest 的 ReduceRule 中的处理方式对 MeanKernel 做相应修改,即遇到 int 或 bool 类型输入时先 cast 为 float32 计算再cast 回原类型;torch 的 int 或 bool 类型输入不支持反向计算,所以反向暂不做修改。
image

回测结果:
image

@codecov-commenter

codecov-commenter commented Jun 13, 2025 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (develop@4aee08b). Learn more about missing BASE report.

⚠️ Current head a91d0d0 differs from pull request most recent head 3c7b550

Please upload reports for the commit 3c7b550 to get more accurate results.

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

@paddle-bot paddle-bot Bot added the contributor External developers label Jun 13, 2025
@luotao1 luotao1 added the HappyOpenSource Pro 进阶版快乐开源活动,更具挑战性的任务 label Jun 16, 2025
@lshpku
lshpku merged commit 7f6ca18 into PaddlePaddle:develop Jun 19, 2025
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.

4 participants