1 unstable release

0.1.0-alpha Feb 23, 2021

#728 in Science

Apache-2.0

64KB
1.5K SLoC

tvm-graph-rt

An implementation of TVM's graph runtime in Rust. See tvm crate for more documentation.


lib.rs:

This crate is an implementation of the TVM runtime for modules compiled with --system-lib. It's mainly useful for compiling to WebAssembly and SGX, but also native if you prefer Rust to C++.

For TVM graphs, the entrypoint to this crate is runtime::GraphExecutor. Single-function modules are used via the packed_func! macro after obtaining the function from runtime::SystemLibModule

The main entrypoints to this crate are GraphExecutor For examples of use, please refer to the multi-file tests in the tests directory.

Dependencies

~5–11MB
~198K SLoC