Discussed in #2197
Originally posted by ilan-gold September 17, 2024
Hello all,
I have been looking into the core code here (teehee) and I noticed the recent #1967. It made me wonder why array_api + dlpack is not used for the Buffer class (in general, and also specifically in that PR). I am guessing "no one has done it yet" is the answer, which is fair considering we all have other things going on, but then I am curious what #1967 gives that array_api + dlpack wouldn't.
I think cupy, jax (mentioned in the PR), and numpy all support array_api if memory serves correctly.
Sorry for the short question, with probably a long answer, but don't want to presume too much. I also did a quick search of the issues and found nothing relevant to the array api, but might have missed something: https://data-apis.org/array-api/latest/index.html
cc: @akshaysubr @madsbk @d-v-b @dcherian
Discussed in #2197
Originally posted by ilan-gold September 17, 2024
Hello all,
I have been looking into the core code here (teehee) and I noticed the recent #1967. It made me wonder why
array_api+ dlpack is not used for theBufferclass (in general, and also specifically in that PR). I am guessing "no one has done it yet" is the answer, which is fair considering we all have other things going on, but then I am curious what #1967 gives thatarray_api+ dlpack wouldn't.I think
cupy,jax(mentioned in the PR), andnumpyall supportarray_apiif memory serves correctly.Sorry for the short question, with probably a long answer, but don't want to presume too much. I also did a quick search of the issues and found nothing relevant to the array api, but might have missed something: https://data-apis.org/array-api/latest/index.html
cc: @akshaysubr @madsbk @d-v-b @dcherian