Uh oh!
There was an error while loading. Please reload this page.
GH-40348: [Python] Add Python wrapper for VariableShapeTensor - #40354
GH-40348: [Python] Add Python wrapper for VariableShapeTensor#40354rok wants to merge 4 commits into
Conversation
AlenkaF
left a comment
There was a problem hiding this comment.
Small nits =) Thank you for working on this, takes lots of work!
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
b6b63a6 to
a372fe6CompareAlenkaF
commented
Apr 6, 2024
The failures are connected. |
fab047e to
f58c973Compare5197532 to
55cc40bCompare0df8139 to
d5a548dComparerok
commented
Mar 17, 2026
@AlenkaF could you do a quick pass on this? I'm a little unsure about the |
AlenkaF
commented
Mar 18, 2026
@rok sure! Will have a look later today. |
AlenkaF
commented
Mar 19, 2026
I did a very quick look at the code now. I would suggest splitting this PR into two as there is quite a lot of lines added and there might be even something that can be moved out. Moving the |
rok
commented
Apr 14, 2026
Agreed, I moved these into a separate PR and rebased here. I think this is ready for a more final review. |
AlenkaF
left a comment
There was a problem hiding this comment.
Thank you for adding this @rok! Huge amount of work was needed here (and in the C++ implementation).
I did a first check but still need to go through most of the Cython code and all the tests.
As for the C++ permutation change - maybe that also fits better into a separate issue&PR?
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
rok
commented
Apr 15, 2026
Thanks for the quick review @AlenkaF ! I addressed your comments, please do another pass whenever you can. Regarding the C++ permutation change - I'll think about it a bit more and perhaps really spin it out. Again, I'm not entirely sure what to do yet, but it doesn't change the remainder of the review. |
Add PyArrow bindings for the VariableShapeTensor extension type, including VariableShapeTensorType, VariableShapeTensorArray, and VariableShapeTensorScalar with support for converting to/from NumPy tensors.
rok
commented
Apr 27, 2026
@raulcd yeah, it's related. I wanted to reason through strides/permutation logic one more time. The rest of the PR is ready for review. |
Rationale for this change
Once C++ implementation of VariableShapeTensor is complete (#38007) we want a Python wrapper for
VariableShapeTensor.What changes are included in this PR?
This adds a Python wrapper for
VariableShapeTensor.Are these changes tested?
This adds appropriate Python tests.
Are there any user-facing changes?
Yes, a new extension and array type are exposed.