tqchen commented on PR #690:
URL: https://github.com/apache/tvm-ffi/pull/690#issuecomment-5097632499

   Thanks @voidLitchi . Looking at the code. Ideally the best places the DLPack 
exchange API location definition can be contributed to the upstream package(in 
this case torch_npu package as part of its dlpack module). We are also 
increasingly moving towards upstream (as in CUDA) to bring up the convention 
which is more robust in terms of ABI version.
   
   the overall mechanism is torch_npu get autoloaded as a torch backend. It can 
bundle this variant of the C DLPack Exchange API in then override 
`torch.Tensor.__dlpack_c_exchange_api__` during its autoloading process


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