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

Function check1

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

Source from the content-addressed store, hash-verified

202 assert x.__ctypes_handle__().value is None
203
204 def check1() -> None:
205 x = tvm_ffi.convert([1, 2])
206 assert use_count(x) == 1
207 y = f(x, 2)
208 f(x._move(), 2)
209 assert x.__ctypes_handle__().value is None
210 assert y.__ctypes_handle__().value is not None
211
212 check0()
213 check1()

Callers 1

test_rvalue_refFunction · 0.85

Calls 1

convertMethod · 0.45

Tested by

no test coverage detected