-
For example: mlx/mlx/backend/metal/binary.cpp Lines 147 to 153 in 54a71f2 Why using |
Beta Was this translation helpful? Give feedback.
Answered by
awni
May 24, 2025
Replies: 1 comment 1 reply
-
For the contiguous ops it doesn't matter.. I think they could be unsigned. In some cases (e.g. for the non-contiguous ops) we use signed integers because strides can be negative. I think the use of signed integers in the contiguous ops is just a by product of that as the earlier logic is simpler. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
zcbenz
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For the contiguous ops it doesn't matter.. I think they could be unsigned. In some cases (e.g. for the non-contiguous ops) we use signed integers because strides can be negative. I think the use of signed integers in the contiguous ops is just a by product of that as the earlier logic is simpler.