Return 'cpu' for device(numpy_array) when dispatch is enabled#32705
Return 'cpu' for device(numpy_array) when dispatch is enabled#32705ogrisel merged 3 commits intoscikit-learn:mainfrom
'cpu' for device(numpy_array) when dispatch is enabled#32705Conversation
'cpu' for device(numpy_array) when dispatch is enabled
betatim
left a comment
There was a problem hiding this comment.
I vote for this change. No opinion about including it in #31829 or merging this PR separately. Maybe separately makes it easier to understand why we made this change (for people from the future)?
@lucyleeow any opinions on this and where to include this change?
|
I pushed a small tweak in |
|
LGTM as well. Let's merge. |
|
Sorry I am late to the party, I did some (probably unnecessary digging into numpy) just to understand support for tl;dr it seems the spec defines the default value for Thanks for this! 🚀 |
This PR will check using the CI whether we can change the current behavior for
deviceto return"cpu"on numpy inputs whenarray_api_dispatch is True.Context: #31829 (comment)