Module tvm::runtime[][src]

Modules

This module provides an idiomatic Rust API for creating and working with TVM functions.

Provides the Module type and methods for working with runtime TVM modules.

This module implements the NDArray type for working with TVM tensors or coverting from a Rust’s ndarray to TVM NDArray.

Macros

Structs

An owned thread-safe version of tvm::PackedFunc for consumption in Rust.

A TVM intrusive smart pointer header, in TVM all FFI compatible types start with an Object as their first field. The base object tracks a type_index which is an index into the runtime type information table, an atomic reference count, and a customized deleter which will be invoked when the reference count is zero.

A smart pointer for types which implement IsObject. This type directly corresponds to TVM’s C++ type ObjectPtr.

Enums

A borrowed TVMPODValue. Can be constructed using into() but the preferred way to obtain a ArgValue is automatically via call_packed!.

A newtype wrapping a raw TVM byte-array.

Device type represents the set of devices supported by TVM.

An owned TVMPODValue. Can be converted from a variety of primitive and object types. Can be downcasted using try_from if it contains the desired type.

Traits

An unsafe trait which should be implemented for an object subtype.

Functions

Gets the last error message.

Outputs the current TVM version.