tvm_ffi.ObjectConvertible#
- class tvm_ffi.ObjectConvertible#
Bases:
objectBase class for Python classes convertible to
Object.Subclasses implement
asobject()to produce anObjectinstance used by the FFI runtime.- __init__()#
Methods
- asobject()#
Return an
Objectview of this value.This method is used by the conversion helpers (e.g.
tvm_ffi.convert()) when a Python value needs to be passed into FFI calls.- Return type:
- Returns:
tvm_ffi.core.Object