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

interpreter: (linalg) allow scalar params for linalg generic #1932

Merged
merged 1 commit into from
Jan 5, 2024

Conversation

superlopuh
Copy link
Member

No description provided.

Copy link

codecov bot commented Jan 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (732e134) 89.45% compared to head (f7ad904) 89.45%.
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1932   +/-   ##
=======================================
  Coverage   89.45%   89.45%           
=======================================
  Files         279      279           
  Lines       34087    34100   +13     
  Branches     5078     5080    +2     
=======================================
+ Hits        30491    30505   +14     
  Misses       2868     2868           
+ Partials      728      727    -1     

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

@@ -91,3 +91,49 @@ def test_linalg_generic():
interpreter.run_op(op, (a, b, c))

assert c.data == [1, 4, 9, 16, 25, 36]


def test_linalg_generic_scalar():
Copy link
Collaborator

Choose a reason for hiding this comment

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

Out of curiosity, why doing the test here rather than in an MLIR file?
I find MLIR files overall more readable, and making more sense since they test exactly what we want.

Copy link
Member Author

Choose a reason for hiding this comment

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

TBH mostly because I already had this file lying around. I'll take a look into converting this to filecheck.

Copy link
Member Author

Choose a reason for hiding this comment

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

I usually add python files for individual ops but the generic one is a bit awkward to test for individually, easier to set up more of an integration style test

Copy link
Member Author

Choose a reason for hiding this comment

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

Actually let's merge this and I create a task to do this later? Feels less time-sensitive than some other things I'd like to move on to in the short term.

Copy link
Collaborator

@AntonLydike AntonLydike left a comment

Choose a reason for hiding this comment

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

Would love to see a description of what this is doing in the PR, makes it easier to review the code! LGTM I think!

@superlopuh superlopuh merged commit 71fc479 into main Jan 5, 2024
10 checks passed
@superlopuh superlopuh deleted the sasha/linalg/scalar-args branch January 5, 2024 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
interpreter xDSL Interpreter
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants