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

Class MyObject

tests/python/test_container.py:90–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88
89def test_array_map_of_opaque_object() -> None:
90 class MyObject:
91 def __init__(self, value: Any) -> None:
92 self.value = value
93
94 a = tvm_ffi.convert([MyObject("hello"), MyObject(1)])
95 assert isinstance(a, tvm_ffi.Array)

Callers 1

Calls

no outgoing calls

Tested by 1