Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add recommendation on what to do with DLPack read-only flag
This is a follow-up to the discussion in data-apisgh-191. It's a recommendation rather than a hard requirement to allow implementers some choice. That said, this is how things worked in practice before DLPack 1.0 as well, since there was no flag to represent read-only. Experience with JAX showed that exposing shared memory was preferred by users over raising or always making a copy of the data on the producer side.
- Loading branch information