-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Rust] Static syslib #3274
[Rust] Static syslib #3274
Conversation
use tvm_runtime::DLTensor; | ||
|
||
mod tvm_mod { | ||
import_module!("runtime/tests/test_tvm_static/test.o"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a way to have this generate better wrappers for the contained packed functions, instead of having to use macros to call them?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What did you have in mind? The only other alternative would be to have build.rs
dump the macro output to a file (or write a compiler plugin, but that's the nuclear option).
Please help to resolve the CI problem http://ci.tvm.ai:8080/blue/organizations/jenkins/tvm/detail/PR-3274/2/pipeline |
This PR provides a macro that loads syslib modules at compile time. The immediate benefit is that it removes the need for closures. This macro will later be expanded to instantiate graphs at compile time.
cc @ehsanmok