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

Function check0

tests/python/test_function.py:197–202  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

195 f = tvm_ffi.convert(callback)
196
197 def check0() -> None:
198 x = tvm_ffi.convert([1, 2])
199 assert use_count(x) == 1
200 f(x, 2)
201 f(x._move(), 1)
202 assert x.__ctypes_handle__().value is None
203
204 def check1() -> None:
205 x = tvm_ffi.convert([1, 2])

Callers 1

test_rvalue_refFunction · 0.85

Calls 1

convertMethod · 0.45

Tested by

no test coverage detected