MCPcopy Create free account
hub / github.com/apache/tvm-ffi / CompactObject

Class CompactObject

tests/python/test_object.py:194–199  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

192
193def test_object_protocol() -> None:
194 class CompactObject:
195 def __init__(self, backend_obj: Any) -> None:
196 self.backend_obj = backend_obj
197
198 def __tvm_ffi_object__(self) -> Any:
199 return self.backend_obj
200
201 x = tvm_ffi.convert([])
202 assert isinstance(x, tvm_ffi.Object)

Callers 1

test_object_protocolFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_object_protocolFunction · 0.68