-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for MLX #299
Comments
Looks like this might be an MLX issue, but happy to take a PR here if it would help. |
Do you have a hint on how to get started with this? I'm noticing that jaxtyping is trying to subclass anything passed as the type hint: https://github.com/patrick-kidger/jaxtyping/blob/main/jaxtyping/_array_types.py#L620 but mx.array can't be subclassed, likely because it's coming from nanobind. Is there any way to skip this step without using |
FWIW I don't completely remember why I went to the effort of subclassing the provided type, instead of treating this as a completely independent type. Does removing that break any tests? |
@patrick-kidger #301 should fix this |
Hello,
I'm opening an issue to request support for MLX. Currently we get
TypeError: type 'nanobind.nb_type_0' is not an acceptable base type
. Hopefully it will gather interest from the community.Cheers!
The text was updated successfully, but these errors were encountered: