8000 Clarify default device for `asarray` (#286) · lezcano/array-api@e8fc612 · GitHub
[go: up one dir, main page]

Skip to content

Commit e8fc612

Browse files
authored
Clarify default device for asarray (data-apis#286)
1 parent d93dc92 commit e8fc612

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/API_specification/creation_functions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ Convert the input to an array.
7272

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

75-
- device on which to place the created array. Default: `None`.
75+
- device on which to place the created array. If `device` is `None` and `x` is either an array or an object supporting DLPack, the output array device must be inferred from `x`. Default: `None`.
7676

7777
- **copy**: _Optional\[ bool ]_
7878

0 commit comments

Comments
 (0)
0