MCPcopy Index your code
hub / github.com/apache/tvm / _wrapper

Function _wrapper

python/tvm/contrib/dlpack.py:39–44  ·  view source on GitHub ↗
(*args)

Source from the content-addressed store, hash-verified

37 assert callable(tvm_func)
38
39 def _wrapper(*args):
40 args = tuple(
41 tvm.runtime.from_dlpack(to_dlpack_func(arg)) if isinstance(arg, tensor_type) else arg
42 for arg in args
43 )
44 return tvm_func(*args)
45
46 return _wrapper
47

Callers

nothing calls this directly

Calls 1

tupleFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…