Python API#
TVM FFI Python package.
Object#
Base class of all TVM FFI objects. |
Tensor#
Managed n-dimensional array compatible with DLPack. |
|
|
Import a foreign array that implements the DLPack producer protocol. |
|
Shape tuple that represents |
|
TVM FFI dtype class. |
A device descriptor used by TVM FFI and DLPack. |
|
|
Enumeration mirroring DLPack's |
|
Construct a TVM FFI device with given device type and index. |
Function#
Callable wrapper around a TVM FFI function. |
Module#
|
Module container for dynamically loaded Module. |
|
Get system-wide library module singleton. |
|
Load module from file. |
Containers#
Global Registry#
|
Register an error class so it can be recognized by the ffi error handler. |
|
Register object type. |
|
Register global function. |
|
Get a global function by name. |
|
Get the type schema string of a global function by name. |
|
Initialize register ffi api functions into a given module. |
|
Remove a global function by name. |
Stream Context#
|
Represent a stream context in the FFI system. |
|
Create an FFI stream context with a Torch stream or graph. |
|
Create a ffi stream context with given device and stream handle. |
Inline Loading#
C++ integration helpers for building and loading inline modules.
|
Compile, build and load a C++/CUDA module from inline source code. |
|
Compile and build a C++/CUDA module from inline source code. |