How to filter out NAN values from an array? #2200
Replies: 1 comment
-
MLX doesn't have operations where the output shape depends on the input data. You can read more about that here. So to do what you want you could use |
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.
-
Let's say I have an array that contains NAN values, I know that using '''mx.where''', we can replace the NAN values with other values. But here, I just want to remove them completely from the array. Is there a way to do this?
For example:
It seems that mlx does not support boolean indices so I am not sure how to filter out the NANs.
Thanks a lot for the help.
Beta Was this translation helpful? Give feedback.
All reactions