Skip to content

[Unity] Improved error message for matmul shape mismatch - #16308

Merged
Lunderberg merged 2 commits into
apache:unityfrom
Lunderberg:unity_improved_error_message_matmul
Jan 8, 2024
Merged

Lunderberg merged 2 commits into
apache:unityfrom
Lunderberg:unity_improved_error_message_matmul

Conversation

@Lunderberg

Copy link
Copy Markdown
Contributor

If a matrix multiplication cannot be performed due to incompatible shapes, the error message now specifies the arguments, the shape of each argument, and which dimension of the shape has a mismatch. Previously, this error message only provided the dimension of the mismatch.

If a matrix multiplication cannot be performed due to incompatible
shapes, the error message now specifies the arguments, the shape of
each argument, and which dimension of the shape has a mismatch.
Previously, this error message only provided the dimension of the
mismatch.

@slyubomirsky slyubomirsky 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.

I'm always happy to see improvements to error messages 👍

@Lunderberg
Lunderberg merged commit ef2a913 into apache:unity Jan 8, 2024
@Lunderberg
Lunderberg deleted the unity_improved_error_message_matmul branch January 8, 2024 22:05
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.

2 participants