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

   This PR makes downstream library loading process correct and convenient, by 
bringing in a new API `tvm_ffi.libinfo.load_lib_module`.
   
   To demonstrate the effect, the file 
`examples/packaging/python/my_ffi_extension/base.py`, which degenerates to only 
2 lines after this PR:
   
   ```python
   import tvm_ffi
   _LIB = tvm_ffi.libinfo.load_lib_module("my-ffi-extension", 
"my_ffi_extension")
   ```
   
   It's worth mentioning that the new API works smoothly for both editable and 
non-editable builds, which is more correct than the existing one.


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