Python API#
TVM FFI Python package.
Object#
Base class of all TVM FFI objects. |
|
|
Register object type. |
Function and Module#
Python class that wraps a function with tvm-ffi ABI. |
|
Module container for dynamically loaded Module. |
|
|
Register global function. |
Get a global function by name. |
|
|
Get system-wide library module singleton. |
|
Load module from file. |
|
Initialize register ffi api functions into a given module. |
|
Register an error class so it can be recognized by the ffi error handler. |
|
Convert a python object to ffi values. |
Tensor#
|
Shape tuple that represents |
Tensor object that represents a managed n-dimensional array. |
|
Device represents a device in the ffi system. |
|
|
Convert an external tensor to an Tensor. |
Containers#
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. |
Utility#
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. |