Persists an MLX array to a .npy file using MLX's native serialization.
Arguments
- x
Object coercible to mlx.
- file
Path to the output file. If the file does not end with .npy,
the extension is appended automatically.
Value
Invisibly returns the full path that was written, including the
.npy suffix.