Cross ref https://github.com/data-apis/array-api/issues/972. It would be useful to think about DLPack-based protocol for dtype and device exchange.