-
Notifications
You must be signed in to change notification settings - Fork 4k
GH-38007: [C++] Add VariableShapeTensor implementation #38008
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
rok
wants to merge
62
commits into
apache:main
Choose a base branch
from
rok:38007
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+874
−112
Open
Changes from all commits
Commits
Show all changes
62 commits
Select commit
Hold shift + click to select a range
644eaa8
Initial commit
rok 5b1c0f6
Add VariableShapeTensorArray::ToTensor(i)
rok 2b5b81e
:Add ragged_dimensions
rok 5d06f95
Replace ragged_dimensions with uniform_dimensions
rok dbb4993
Add example for explanation
rok 5848306
Add uniform_shape parameter
rok adcb51c
Apply suggestions from code review
rok d00fe2d
Post rebase
rok 5309baf
Remove uniform_dimensions, fix python test
rok 04edd4b
lint
rok c05d93f
uniform_shape values are optional
rok 910c736
Add scalar test
rok 1d157e7
Create Tensor from scalar
rok 5f3101b
Move get_tensor logic to cpp
rok 01d084c
slice buffer with array offset
rok c649f98
Update cpp/src/arrow/extension/variable_shape_tensor.h
rok 6c27363
Update cpp/src/arrow/extension/variable_shape_tensor.cc
rok 372a245
Update cpp/src/arrow/extension/variable_shape_tensor.cc
rok bc062d1
Update cpp/src/arrow/extension/variable_shape_tensor.cc
rok e5db81e
Update cpp/src/arrow/extension/variable_shape_tensor.cc
rok b7f9094
Review feedback
rok 58a3b5a
Update cpp/src/arrow/extension/variable_shape_tensor.cc
rok 0eff367
Review feedback
rok fa2689e
import and uint32->int32
rok 1b91b51
permutation check
rok 75185a2
Remove serialization from cython, lint
rok 195d132
Review feedback
rok 85fa3dd
ndim initializer
rok fdf22fb
Test null values
rok e069ef1
Remove one GetTensor code paths, permutation handling
rok ecd7b78
Allow arbitrary memory layout
rok a31ea20
fix permutation check
rok f210e33
lint
rok b4408c9
lint
rok 8781c4e
roundtrip strided
rok 9d42a09
Apply suggestions from code review
rok a11c96f
remove array.gettensor, simlify
rok fdfe7f1
work
rok 7ec2e9d
Add repr
rok 994ce76
Review feedback
rok 670904f
GetTensor->MakeTensor, static
rok 0af89f9
Better permutations check
rok adfe6cb
post rebase changes
rok 7501925
work
rok 7bfda3c
ToString new parameter
rok 2a794b0
Remove Python bindings
rok 88de17f
Review feedback
rok 8ccf1de
Use TensorFromJSON
rok d531a67
lint
rok 833d915
Apply suggestions from code review
rok 543fd25
Update cpp/src/arrow/extension/variable_shape_tensor.cc
rok ab4388f
fix
rok 9124057
Review feedback
rok 19aa660
mingw64 issue
rok a4a2afe
refactor ComputeStrides
rok 3e5bb74
Change to ComputeStrides
rok e9e3245
Change ToTensor
rok 19bb6b6
Refactoring ComputeStrides
rok b888bd7
Move RoundtripBatch to gtest_util.cc
rok ed4ff5a
Post rebase changes
rok 7daa31a
Post rebase changes
rok 440ce55
post rebase fixes
rok File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need this? This doesn't sound logical.