AntoinePrv opened a new pull request, #50929:
URL: https://github.com/apache/arrow/pull/50929

   - **Rename some functions**
   - **Handle recursive FixedSizeList**
   - **Factor export device**
   - **Factorize stride utilities**
   - **Add Array::ToTensor**
   - **Add FixedSizeListArray::ToTensor**
   - **Remove DLPack support for nested list**
   - **Add ToTensor in eror message**
   - **Add ToTensor in Python**
   - **Add dlpack to_tensor test**
   
   ### Rationale for this change
   Enable multidimensional DLPack support for Array via `to_tensor`.
   
   ### What changes are included in this PR?
   - Add virtual `Array::ToTensor`
   - Add `NumericArray::ToTensor` for 1D arrays
   - Add `FixedSizeListArray::ToTensor` for multidimensional arrays
   - Add DLPack error suggestiong tensor convertion
   - Add DLPack tests with `arr.to_tensor().__dlpack__()`
   
   ### Are these changes tested?
   Yes
   
   ### Are there any user-facing changes?
   New public Array function.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to