Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ONNX] rework some reduction op lowerings #3870

Merged
merged 4 commits into from
Nov 14, 2024

Conversation

zjgarvey
Copy link
Collaborator

@zjgarvey zjgarvey commented Nov 13, 2024

  • Refactors more "onnx.ReduceXXX" patterns through helper function.
  • Fixes bug with iterating unconditionally on output_dim == 1 during dimList inference.

This change results in passes for the following 11 models:

crossvit_15_240
crossvit_15_dagger_240
crossvit_15_dagger_408
crossvit_18_240
crossvit_18_dagger_240
crossvit_18_dagger_408
crossvit_9_240
crossvit_9_dagger_240
crossvit_base_240
crossvit_small_240
crossvit_tiny_240

Fix bug with iterating unconditionally on dims==1
Copy link
Collaborator

@vivekkhandelwal1 vivekkhandelwal1 left a comment

Choose a reason for hiding this comment

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

Just a small doubt, except that everything else looks good.

zjgarvey and others added 2 commits November 14, 2024 10:12
Updates some comments and failure reporting.

Co-authored-by: Vinayak Dev <[email protected]>
@zjgarvey zjgarvey enabled auto-merge (squash) November 14, 2024 16:15
@zjgarvey zjgarvey merged commit 1201bab into llvm:main Nov 14, 2024
3 checks passed
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