yaoyaoding opened a new pull request, #192: URL: https://github.com/apache/tvm-ffi/pull/192
This PR adds a function `build_torch_c_dlpack_extension` to build the c-dlpack extension for pytorch. Usage ```python import os import tvm_ffi from tvm_ffi._optional_torch_c_dlpack import build_torch_c_dlpack_extension libpath = build_torch_c_dlpack_extension(build_directory="./py310") # libpath is a shared library that contains the extension mod = tvm_ffi.load_module(libpath) assert mod is not None assert mod.TorchDLPackExchangeAPIPtr() is not None ``` -- 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]
