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 recommendation on what to do with DLPack read-only flag #749

Closed rgommers closed 4 months ago

rgommers commented 4 months ago

This is a follow-up to the discussion in gh-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.

leofang commented 4 months ago

With 3 approvals, let's merge. Thanks to Ralf and all.