Replies: 1 comment 7 replies
-
Looks like Line 117 in cb431df I tried the reshape + flatten that the |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I would like to access the raw bytes of an array(using the C++ API). I've noticed that when I'm trying to do this with an array that was the result of a broadcast, the bytes returned don't reflect the values in the array:
Even when the
flags.contiguous
value is true(1), I get the following output:As you can see, even though MLX can access 4 int32's with value 2, the bytes has just one
2
with the rest of the values 0.Am I accessing the raw bytes of the array incorrectly? And is there a way to reliably get the bytes contiguously?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions