Skip to content

Reference evaluator: treat empty axes as empty#7244

Merged
justinchuby merged 2 commits intoonnx:mainfrom
ryota717:fix-is-axes-empty
Aug 25, 2025
Merged

Reference evaluator: treat empty axes as empty#7244
justinchuby merged 2 commits intoonnx:mainfrom
ryota717:fix-is-axes-empty

Conversation

@ryota717
Copy link
Copy Markdown
Contributor

Description

Fix the is_axes_empty method to treat empty axis empty.
And as refactor, use this method in ReduceSum_13.

Motivation and Context

#7140

@ryota717 ryota717 requested a review from a team as a code owner August 22, 2025 10:51
@github-project-automation github-project-automation Bot moved this to In progress in PR Tracker Aug 22, 2025
Signed-off-by: ryota717 <ryota.nishijima@fout.jp>
Signed-off-by: ryota717 <ryota.nishijima@fout.jp>
@codecov
Copy link
Copy Markdown

codecov Bot commented Aug 22, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 54.33%. Comparing base (b00530c) to head (74ade32).
⚠️ Report is 3 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #7244   +/-   ##
=======================================
  Coverage   54.33%   54.33%           
=======================================
  Files         511      511           
  Lines       31819    31819           
  Branches     2848     2848           
=======================================
  Hits        17290    17290           
  Misses      13753    13753           
  Partials      776      776           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Copy Markdown
Contributor

@cbourjau cbourjau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Could you add a unit test? I think adding an "example" to the respective files under onnx/backend/test/case/node should do the trick.

@github-project-automation github-project-automation Bot moved this from In progress to Review in progress in PR Tracker Aug 24, 2025
@justinchuby

This comment was marked as resolved.

@justinchuby justinchuby changed the title Treat empty axes as empty. Reference evaluator: treat empty axes as empty Aug 25, 2025
Copy link
Copy Markdown
Member

@justinchuby justinchuby left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can merge this first, thanks! Feel free to consider contributing a test case as suggested

@github-project-automation github-project-automation Bot moved this from Review in progress to Reviewer approved in PR Tracker Aug 25, 2025
@justinchuby justinchuby merged commit 9738ccc into onnx:main Aug 25, 2025
34 checks passed
@github-project-automation github-project-automation Bot moved this from Reviewer approved to Done in PR Tracker Aug 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants