Skip to content

Interplay between copy and device in asarray()? #254

Closed
@leofang

Description

@leofang

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`.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions