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

   This PR introduces autodlpack feature to the tvm ffi. When an ffi Function 
takes Tensor argument that conforms to DLPack it automatically imports into 
NDArray and pass as argument.
   
   The feature will allow compiled function to directly take torch.Tensor as 
input argument without extra set of changes.
   
   We also added a benchmark script to measure the overall ffi overhead. One 
thing to note is that there is still continuguous and alignment requirement 
that is needed by underlying DSL compiler, as of now we use a global value. So 
x.continugous is still needed before passing the argument if tranpose or other 
ops are performed.


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