mlx-c
mlx-c copied to clipboard
C API for MLX
I noticed that these are missing from ops.h: ``` /** * Extract the number of elements along some axes as a scalar array. Used to * allow shape dependent shapeless...
Exposes `overwrite_descriptor` which is useful for implementing things like add assign - used by python as well.
This introduces the new API of MLX C - Less overheads on objects (no vtable, no refcount) - Return values are handled via (pointer) arguments - Better error management: C++...
This is an experimental attempt at solving #34. There are two major changes 1. Introduce a new type `mlx_vector_array_result` (and corresponding constructor, getter functions) to indicate status of closure execution...
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...