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

Fix handling of bias column vectors when K=0 #526

Merged
merged 1 commit into from
Jan 9, 2025

Conversation

robertknight
Copy link
Owner

@robertknight robertknight commented Jan 9, 2025

In a matmul where K=0, bias column vectors were being incorrectly broadcast as if they were a row vector. This went unnoticed for two reasons:

  1. The test was missing a check for equality between actual and expected results.
  2. The M and N sizes were the same in the only test where K=0, so no broadcast error occurred.

The column vector was being incorrectly broadcast as if it were a row vector.
This went unnoticed for two reasons:

 1. The test was missing a check for equality between actual and expected
    results.
 2. The M and N sizes were the same in the only test where K=0, so no
    broadcast error occurred.
@robertknight robertknight merged commit 8f7db26 into main Jan 9, 2025
2 checks passed
@robertknight robertknight deleted the fix-gemm-column-vectors branch January 9, 2025 23:11
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.

1 participant