Closed charlesbmi closed 1 month ago
This looks like a Nanobind issue. FIled here https://github.com/wjakob/nanobind/issues/709, let's see if it is something they can fix.
This is fixed in nanobind on the main branch. Since there is a work-around using ascontiguousarray
I will wait until the next Nanobind release, then we can bump MLXs nanobind dependency and close this. The Nanobind release cycle is about 3 months so it could be a couple months before this is closed.
If it's more urgent we could always discuss versioning our own Nanobind on PyPi.. but I don't think it's merited just for this.
Sounds good, thanks!
Thanks!
Describe the bug Cannot initialize
mx.array
from a complex, non-contiguousnp.array
, and the error message is confusing.To Reproduce
Expected behavior Expected to run without errors.
Actual error:
Note: workarounds are:
np.ascontiguousarray
, which works, but took me a while to figure out that this is a requirementDesktop (please complete the following information):
Additional context Add any other context about the problem here.