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

Method convertFunc

jvm/core/src/main/java/org/apache/tvm/Function.java:281–285  ·  view source on GitHub ↗

Convert a Java function to TVM function. @param function Java function. @return TVM function.

(Callback function)

Source from the content-addressed store, hash-verified

279 * @return TVM function.
280 */
281 public static Function convertFunc(Callback function) {
282 Base.RefLong createdFuncHandleRef = new Base.RefLong();
283 Base.checkCall(Base._LIB.tvmFFIFunctionCreateFromCallback(function, createdFuncHandleRef));
284 return new Function(createdFuncHandleRef.value);
285 }
286
287 private static Object invokeRegisteredCbFunc(Callback cb, TVMValue[] args) {
288 if (cb == null) {

Callers 6

test_add_stringMethod · 0.95
test_sum_first_byteMethod · 0.95
test_sum_tensorMethod · 0.95
test_return_functionMethod · 0.95
invokeMethod · 0.95
SocketChannelClass · 0.95

Calls 2

checkCallMethod · 0.95

Tested by 5

test_add_stringMethod · 0.76
test_sum_first_byteMethod · 0.76
test_sum_tensorMethod · 0.76
test_return_functionMethod · 0.76
invokeMethod · 0.76