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

   This PR enhances DLPack exchange by introducing DLPackPyObjectExporter, 
DLPackPyObjectImporter and DLPackTensorAllocator.
   
   These three function pointers will help us to speedup import/export with 
DLPack and also streamline the rare(but still useful sometimes) allocation 
inside the FFI.
   
   They can help to significantly speedup autodlpack import. They will also 
enable us to be able to query the allocator from env and return ffi::Tensor 
back to the caller environment(experimental), when a function takes 
torch.Tensor as argument, returned Tensor values will be converted to 
torch.Tensor.
   
   Also renames SetCurrentStream => SetStream to align with styles in CUDA API.


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