-
Notifications
You must be signed in to change notification settings - Fork 8
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
ENH: new canonicalize DType function? #151
Comments
Here's JAX's implementation: https://github.com/jax-ml/jax/blob/bb96226dd8a3b4b92431edf2ca75bc82741b4be9/jax/_src/dtypes.py#L296-L310 |
do you have some example code motivating this inclusion? |
https://github.com/data-apis/array-api/pull/848/files is in the same general area. |
I'm not sure I understand how that solves the above problem? |
You're effectively asking for the default float dtype, right? So |
|
That's what data-apis/array-api#848 is changing! |
Oh, my mistake! I guess if you're okay with this, you can just do |
I'd probably be open to adding an alias if you would like to reopen in the future! The difficulty is probably just deciding exactly which shorthands should be in the API, and what the best name would be. |
Jax has canonicalize_dtype and PyTorch also has a notion of default types.
Can we provide
canonicalize_dtype
for all libraries?Something like:
The text was updated successfully, but these errors were encountered: