wiredfool commented on issue #43831:
URL: https://github.com/apache/arrow/issues/43831#issuecomment-2318186432

   Had a quick look at the pyarrow tensor -- I'm not clear what it actually is, 
in terms of an arrow schema or array. It doesn't seem to support the PyCapsule 
interface anyway: 
   
   ```
   ten = pa.Tensor.from_numpy(x, dim_names=["dim1","dim2"])
   >>> ten.__arrow_c_schema__()
   Traceback (most recent call last):
     File "<stdin>", line 1, in <module>
   AttributeError: 'pyarrow.lib.Tensor' object has no attribute 
'__arrow_c_schema__'
   >>> arr, schema = ten.__arrow_c_array__()
   Traceback (most recent call last):
     File "<stdin>", line 1, in <module>
   AttributeError: 'pyarrow.lib.Tensor' object has no attribute 
'__arrow_c_array__'
   ```
   
   How could I create something that's compatible with a tensor through the 
`__arrow_c_array__` interface?
   
   (Note, I didn't mention earlier -- but we're aiming for native support, not 
having PyArrow being a dependency.)


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