issues
search
data-apis
/
array-api
RFC document, tooling and other content related to the array API standard
https://data-apis.github.io/array-api/latest/
MIT License
205
stars
42
forks
source link
Add note to `to_device` regarding copy behavior when moving to same device
#742
Closed
kgryte
closed
4 months ago
kgryte
commented
4 months ago
This PR
closes
https://github.com/data-apis/array-api/issues/645
by adding a note concerning expected behavior when a specified device corresponds to the device on which an array instance resides. Namely, copy behavior is left implementation-dependent, with conforming array libraries being allowed to either return
self
or perform an explicit copy, as discussed in
https://github.com/data-apis/array-api/issues/645#issuecomment-1634419029
.
cc @leofang @rgommers
rgommers
commented
4 months ago
In it goes then, thanks both!
This PR
self
or perform an explicit copy, as discussed in https://github.com/data-apis/array-api/issues/645#issuecomment-1634419029.cc @leofang @rgommers