Skip to content

Update device guidance for *_like functions #268

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

Merged
merged 1 commit into from
Sep 20, 2021
Merged

Conversation

kgryte
Copy link
Contributor

@kgryte kgryte commented Sep 20, 2021

This PR

  • updates the output array device guidance for *_like creation functions to infer the output array device from the input array, if the device kwarg is None. This behavior is consistent with dtype and shape inference and consistent with, e.g., Torch.

This change was discussed and agreed upon in the 2021-09-16 consortium meeting.

@kgryte kgryte added the API change Changes to existing functions or objects in the API. label Sep 20, 2021
@kgryte
Copy link
Contributor Author

kgryte commented Sep 20, 2021

As this PR was discussed and agreed upon during the 2021-09-16 consortium meeting, merging...

@kgryte kgryte merged commit 0c99ea2 into main Sep 20, 2021
@kgryte kgryte deleted the update-like-device branch September 20, 2021 17:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API change Changes to existing functions or objects in the API.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant