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
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions spec/API_specification/creation_functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ Returns an uninitialized array with the same `shape` as an input array `x`.

- **device**: _Optional\[ <device> ]_

- device on which to place the created array. If `device` is `None`, the default device must be used, not `x.device`. Default: `None`.
- device on which to place the created array. If `device` is `None`, the output array device must be inferred from `x`. Default: `None`.

#### Returns

Expand Down Expand Up @@ -247,7 +247,7 @@ Returns a new array filled with `fill_value` and having the same `shape` as an i

- **device**: _Optional\[ <device> ]_

- device on which to place the created array. If `device` is `None`, the default device must be used, not `x.device`. Default: `None`.
- device on which to place the created array. If `device` is `None`, the output array device must be inferred from `x`. Default: `None`.

#### Returns

Expand Down Expand Up @@ -370,7 +370,7 @@ Returns a new array filled with ones and having the same `shape` as an input arr

- **device**: _Optional\[ <device> ]_

- device on which to place the created array. If `device` is `None`, the default device must be used, not `x.device`. Default: `None`.
- device on which to place the created array. If `device` is `None`, the output array device must be inferred from `x`. Default: `None`.

#### Returns

Expand Down Expand Up @@ -478,7 +478,7 @@ Returns a new array filled with zeros and having the same `shape` as an input ar

- **device**: _Optional\[ <device> ]_

- device on which to place the created array. If `device` is `None`, the default device must be used, not `x.device`. Default: `None`.
- device on which to place the created array. If `device` is `None`, the output array device must be inferred from `x`. Default: `None`.

#### Returns

Expand Down