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: [email protected]

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

Reply via email to