Choosing values from an mlx array based on indices and booleans with different input and output sizes #1487
Replies: 1 comment
-
I believe, this is more of a limitation of mlx where all the methods have an output size same as its input size. I reposted this under a new issue. Thanks |
Beta Was this translation helpful? Give feedback.
0 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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I am trying to write a custom image resizing algorithm in MLX. For example, let's try to do bilinear interpolation. One problem I am running into is that MLX cannot use booleans to access array information. For example, after I figure out how the output pixels map to the input pixels, we need to assign the output pixel to input pixel based on some indices. I think there might be a combination of masks and mx.where to accomplish that but I am not sure how to go about it?
Here is an example with a simple case, last line gives an error.
Beta Was this translation helpful? Give feedback.
All reactions