-
Notifications
You must be signed in to change notification settings - Fork 72
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
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
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. |
@@ -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(): |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
There was a problem hiding this 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!
No description provided.