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

dialects: (linalg) add linalg.add #2129

Merged
merged 4 commits into from
Feb 9, 2024
Merged

dialects: (linalg) add linalg.add #2129

merged 4 commits into from
Feb 9, 2024

Conversation

kayode-gif
Copy link
Collaborator

resolves #2116

@kayode-gif kayode-gif added the dialects Changes on the dialects label Feb 8, 2024
@kayode-gif kayode-gif self-assigned this Feb 8, 2024
xdsl/dialects/linalg.py Outdated Show resolved Hide resolved
@superlopuh superlopuh requested a review from compor February 8, 2024 14:05
@kayode-gif kayode-gif marked this pull request as ready for review February 8, 2024 14:15
@@ -15,7 +15,9 @@ linalg.generic {indexing_maps = [affine_map<(d0, d1) -> ()>, affine_map<(d0, d1)

%2, %3 = "test.op"() : () -> (tensor<2x3xf32>, tensor<2x3xf32>)

%sum = linalg.generic {indexing_maps = [affine_map<(d0, d1) -> (d0, d1)>, affine_map<(d0, d1) -> (d0, d1)>, affine_map<(d0, d1) -> (d0, d1)>], iterator_types = ["parallel", "parallel"]} ins(%2, %2 : tensor<2x3xf32>, tensor<2x3xf32>) outs(%2 : tensor<2x3xf32>) {
%sum = linalg.add ins(%2, %2 : tensor<2x3xf32>, tensor<2x3xf32>) outs(%3 : tensor<2x3xf32>) -> tensor<2x3xf32>
Copy link
Member

Choose a reason for hiding this comment

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

the alternative is to move this line down to the end of the file, so that it doesn't have an effect on the other lines in the test

Copy link

codecov bot commented Feb 8, 2024

Codecov Report

Attention: 4 lines in your changes are missing coverage. Please review.

Comparison is base (928cbdd) 90.11% compared to head (3e0366a) 90.11%.
Report is 1 commits behind head on main.

Files Patch % Lines
xdsl/dialects/linalg.py 71.42% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2129      +/-   ##
==========================================
- Coverage   90.11%   90.11%   -0.01%     
==========================================
  Files         296      298       +2     
  Lines       36740    36766      +26     
  Branches     5461     5465       +4     
==========================================
+ Hits        33109    33131      +22     
- Misses       2852     2856       +4     
  Partials      779      779              

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

Copy link
Collaborator

@compor compor left a comment

Choose a reason for hiding this comment

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

LGTM module comments

xdsl/dialects/linalg.py Outdated Show resolved Hide resolved
@superlopuh superlopuh merged commit 1a491ea into main Feb 9, 2024
10 checks passed
@superlopuh superlopuh deleted the oke/linalg-add branch February 9, 2024 11:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dialects Changes on the dialects
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Add linalg.add op
3 participants