mlx-c icon indicating copy to clipboard operation
mlx-c copied to clipboard

Returning an error in the closure

Open minghuaw opened this issue 5 months ago • 0 comments

What would be the recommended way to return an error from a closure (assuming that the default error handler has been overridden)? I tried returning a null pointer and store the error message in a global var but mlx_closure_apply (and mlx_vjp) would end up giving me a SIGSEGV because it's trying to create a std::vector from the null pointer.

minghuaw avatar Sep 20 '24 21:09 minghuaw