tqchen opened a new pull request, #81:
URL: https://github.com/apache/tvm-ffi/pull/81

   When exposing an FFI function, sometimes it is not always possible to pass 
in an owning reference of a Tensor, in such case, it is better to interface 
with the Tensor using non-owning view.
   
   This PR adds a ffi::TensorView class to represent in-memory non-owning 
DLTensor view. It can be converted from DLTensorPtr* in the ffi argument but 
cannot be promoted to an owning Tensor.
   
   We recommend kernel ops to make use of TensorView when possible so the 
exposed ops can support broad range of inputs including non-owning ones.


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to