Module tvm::runtime::function[][src]

Expand description

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

For calling an already registered TVM function use [function::Builder] To register a TVM packed function from Rust side either use [function::register] or the macro [register_global_func].

See the tests and examples repository for more examples.

Modules

The low-level C runtime FFI API for TVM.

Structs

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

Enums

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

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

Functions

Registers a Rust function with an arbitrary type signature in the TVM registry.

Register a function with explicit control over whether to override an existing registration or not.

Type Definitions