jorisvandenbossche commented on code in PR #38472:
URL: https://github.com/apache/arrow/pull/38472#discussion_r1409364946


##########
python/pyarrow/includes/libarrow.pxd:
##########
@@ -1199,6 +1199,60 @@ cdef extern from "arrow/api.h" namespace "arrow" nogil:
     shared_ptr[CScalar] MakeNullScalar(shared_ptr[CDataType] type)
 
 
+cdef extern from "arrow/dlpack_structure.h" nogil:
+    cdef enum DLDeviceType:

Review Comment:
   Ah, yes. Now I think you can also declare only those fields that you need, 
i.e. the deleter (the actual definition of the struct still lives in the .h 
file):
   
   ```
   ctypedef struct DLManagedTensor:
       void (*deleter)(DLManagedTensor*)
   ```



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