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

[ufuncs] Subtract + broadcast: Fixed tuple comparison for view shapes #267

Merged
merged 1 commit into from
Mar 24, 2024

Conversation

HannanNaeem
Copy link
Contributor

Previous version made incorrect comparison of viewA.shape < viewB.shape tuple. Python performs an element wise comparison ignoring the total length. Fixed the logic to check length first and then perform the element-wise comparison (iff tuple sizes are the same)

@NaderAlAwar NaderAlAwar merged commit f51eae6 into kokkos:main Mar 24, 2024
5 checks passed
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