You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2022/10/14 02:57:34 UTC

[GitHub] [arrow] kou commented on pull request #14381: ARROW-17997: [Ruby] Add support for building Arrow::Tensor from raw nested Ruby array

kou commented on PR #14381:
URL: https://github.com/apache/arrow/pull/14381#issuecomment-1278405933

   > For the record, the equivalent Python functions don't allow passing `strides`.
   
   Thanks for the information.
   
   It seems that PyArrow only accepts constructing a tensor from a NumPy array: https://arrow.apache.org/docs/python/generated/pyarrow.Tensor.html#pyarrow.Tensor.from_numpy
   
   For Ruby, we're already providing a constructor from raw binary data and metadata. It's based on `arrow::Tensor::Make()` in C++. So we can't remove the constructor to keep backward compatibility.
   
   FYI: We have an external library that converts a NumPy like multi-dimentional array in Ruby (Numo::NArray) to `Arrow::Tensor`: https://github.com/red-data-tools/red-arrow-numo-narray/


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org