Skip to content

Fixes out kwarg in matmul when axes are appended to inputs - #1610

Merged
ndgrigorian merged 3 commits into
masterfrom
matmul-out-dim-fix
Mar 27, 2024
Merged

ndgrigorian merged 3 commits into
masterfrom
matmul-out-dim-fix

Conversation

@ndgrigorian

Copy link
Copy Markdown
Collaborator

This PR corrects behavior of matmul to properly account for appending of axes to inputs where one or both arguments are vectors.

Previously, these cases would raise an error, and require an out array with axes appended by the user.

  • Have you provided a meaningful PR description?
  • Have you added a test, reproducer or referred to an issue with a reproducer?
  • Have you tested your changes locally for CPU and GPU devices?
  • Have you made sure that new changes do not introduce compiler warnings?
  • Have you checked performance impact of proposed changes?
  • If this PR is a work in progress, are you opening the PR as a draft?

@github-actions

github-actions Bot commented Mar 27, 2024 •

Copy link
Copy Markdown

Deleted rendered PR docs from intelpython.github.com/dpctl, latest should be updated shortly. 🤞

@coveralls

coveralls commented Mar 27, 2024 •

Copy link
Copy Markdown
Collaborator

Coverage Status

coverage: 87.952% (+0.01%) from 87.941%
when pulling 55fef8e on matmul-out-dim-fix
into d7c54e4 on master.

@github-actions

Copy link
Copy Markdown

Array API standard conformance tests for dpctl=0.17.0dev0=py310h15de555_153 ran successfully.
Passed: 839
Failed: 0
Skipped: 92

1 similar comment
@github-actions

Copy link
Copy Markdown

Array API standard conformance tests for dpctl=0.17.0dev0=py310h15de555_153 ran successfully.
Passed: 839
Failed: 0
Skipped: 92

@oleksandr-pavlyk oleksandr-pavlyk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM! Thank you @ndgrigorian !

@github-actions

Copy link
Copy Markdown

Array API standard conformance tests for dpctl=0.17.0dev0=py310h15de555_154 ran successfully.
Passed: 839
Failed: 0
Skipped: 92

@ndgrigorian
ndgrigorian merged commit e22412f into master Mar 27, 2024
@ndgrigorian
ndgrigorian deleted the matmul-out-dim-fix branch March 27, 2024 05:00
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