tvm_ffi.ObjectConvertible#

class tvm_ffi.ObjectConvertible#

Bases: object

Base class for Python classes convertible to Object.

Subclasses implement asobject() to produce an Object instance used by the FFI runtime.

__init__()#

Methods

asobject()

Return an Object view of this value.

asobject()#

Return an Object view 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:

Object

Returns:

tvm_ffi.core.Object