Closed
Description
I feel we might need some clarification, but maybe we can start with a quick discussion.
I could be wrong, but we probably missed this in #96: What happens when we call asarray
on an array on device 0 but set copy=False
and device=device 1
? Do we raise ValueError
(as in other copy=False
cases where a copy must be done), or do we ignore copy
as the user clearly knows in this case a copy among the two devices is inevitable?
Another question: We probably owe it to clarify this in asarray()
too, as in other *_like()
cases?
If `device` is `None`, the default device must be used, not `x.device`.