-
Notifications
You must be signed in to change notification settings - Fork 54
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
LLDB hanging when doing po on mlx-swift objects #97
Comments
It might be -- |
@davidkoski is there a way to have the array actually get evaluated when you call |
That is exactly what
|
Right.. so I guess I don't understand why it hangs with the implicit eval but not with the explicit eval. Shouldn't they both be running on a separate thread? |
The odd thing is that I can pretty much https://github.com/derekelewis/mlx-swift-examples/tree/whisper-example/Libraries/Whisper |
Here's a simple, reproducible example that I came up with by modifying Tutorial in mlx-swift-examples by just adding an array initialization with
|
I think the explicit eval is done via the program (all threads running) while the implicit is with all threads stopped in the debugger. When you call |
Yeah, I can repro just by putting a breakpoint after: // pointwise add x and y
let z = x + y and Looking at the help for
So:
works as expected, but:
sadly still hangs. This seems like the right direction (and the documentation on |
Interesting that doing a |
They are doing the same thing (roughly) under the hood. |
I am using LLDB to debug some model code that I have written in mlx-swift. Unless I do an explicit eval() or print() before doing a po on the object in question, LLDB will hang. Is this behavior expected with lazy evaluation?
The text was updated successfully, but these errors were encountered: