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

   ### Rationale for this change
   
   VariableShapeTensorArray stores ragged tensor data as a StructArray of 
{data: list<T>, shape: fixed_size_list<int32>[ndim]}. Users coming from ML 
frameworks (notably TensorFlow RaggedTensor) might have their data already laid 
out as a flat values buffer plus row boundaries (row_splits), and want to 
construct/inspect a VariableShapeTensorArray directly in that form without  
materializing a Python-level list of ndarrays.
   
   ### What changes are included in this PR?
   Add four methods such as `from_row_splits`, `from_offsets`, `to_row_splits`, 
`to_offsets`
   
   ### Are these changes tested?
   
   Python tests are included.
   
   ### Are there any user-facing changes?
   
   Yes, new methods are added.


-- 
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