Refactor/simplify/unify array creation from different sources
Open
@nvlukasz is already working on this.
Since May 30, 2025.
interop
- Dominant language
- Python
- Stars
- 7.1k
- Forks
- 624
- Avg merge
- 3d 17h
- Merged PRs (30d)
- 5
Description
Currently, there are separate code paths that initialize arrays from CPU and GPU data. There is a lot of duplication and some inconsistencies. For example, initializing from __cuda_array_interface__ does not respect the copy flag in the array constructor. Bits of similar code are also scattered in various interop utilities, like wp.from_torch().
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.