Skip to content

Update device guidance for *_like functions - #268

Merged
kgryte merged 1 commit into
mainfrom
update-like-device
Sep 20, 2021
Merged

kgryte merged 1 commit into
mainfrom
update-like-device

Conversation

@kgryte

@kgryte kgryte commented Sep 20, 2021 •

Copy link
Copy Markdown
Contributor

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

kgryte commented Sep 20, 2021

Copy link
Copy Markdown
Contributor Author

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

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