| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There was a problem hiding this comment.
This PR enhances dtype promotion behavior in PyTorch compatibility by supporting additional unsigned integer types and standardizing deep copy semantics for sum and prod operations when axis is an empty tuple.
array_api_compat/torch/_aliases.py:280
def _sum_prod_no_axis(x: Array, dtype: DType | None) -> Array:
array_api_compat/torch/_aliases.py:280
def _sum_prod_no_axis(x: Array, dtype: DType | None) -> Array:
Sorry, something went wrong.
|
#253 seems to have run into a wall with uint promotions in pytorch, did something change meanwhile in the meantime? |
Sorry, something went wrong.
No, nothing has changed on the torch side AFAIK.
|
Sorry, something went wrong.
You lost me here :-). So is it basically "let's add something because we want it, but not test it on CI because we know it'll break"? |
Sorry, something went wrong.
Well, we will need this and the other PR eventually when torch introduces support. |
Sorry, something went wrong.
The latter we definitely do not want to do. |
Sorry, something went wrong.
|
I've updated this to incorporate the latest changes and added the contents of #253, which can now be closed. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.