Skip to content

Commit 54816e9

Browse files
Update spec/draft/design_topics/device_support.rst
Co-authored-by: Lucy Liu <[email protected]>
1 parent cf6331b commit 54816e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/draft/design_topics/device_support.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ rather than hard requirements:
7777
- Respect explicit device assignment (i.e. if the input to the ``device=`` keyword is not ``None``, guarantee that the array is created on the given device, and raise an exception otherwise).
7878
- Preserve device assignment as much as possible (e.g. output arrays from a function are expected to be on the same device as input arrays to the function).
7979
- Raise an exception if an operation involves arrays on different devices (i.e. avoid implicit data transfer between devices).
80-
- When a function accepts a mix of arrays and Python scalars, the scalars should inherit the device of the arrays, much like it happens with :ref:`type-promotion`.
80+
- When a function accepts a mix of arrays and Python scalars, the scalars should inherit the device of the arrays, much like what happens with :ref:`type-promotion`.
8181
- Use a default for ``device=None`` which is consistent between functions within the same library.
8282
- If a library has multiple ways of controlling device placement, the most explicit method should have the highest priority:
8383

0 commit comments

Comments
 (0)