Skip to content

Conversation

finnvoor
Copy link
Contributor

  • exposes setErrorHandler from mlx-c
  • Adds a fatalErrorHandler which calls fatalError, recording a stack trace and attaching the debugger in Xcode. It would be nice to set this by default in mlx-swift, but I'm not sure if that's possible.

Usage: setErrorHandler(fatalErrorHandler)

@davidkoski
Copy link
Collaborator

Looks nice! Please apply swift-format as per:

Thanks

Copy link
Collaborator

@davidkoski davidkoski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for this contribution!

@davidkoski davidkoski merged commit 7ea1257 into ml-explore:main Jan 1, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants