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

Function fapply

tests/python/test_function.py:157–158  ·  view source on GitHub ↗
(f: Any, *args: Any)

Source from the content-addressed store, hash-verified

155 assert fadd(1, 2) == 3
156
157 def fapply(f: Any, *args: Any) -> Any:
158 return f(*args)
159
160 fapply = tvm_ffi.convert(fapply)
161 assert fapply(add, 1, 3.3) == 4.3

Callers 5

test_function_applyFunction · 0.85
test_pyfunc_convertFunction · 0.85
test_error_from_cxxFunction · 0.85
raise_errorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected