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

Method invoke

jvm/core/src/test/java/org/apache/tvm/FunctionTest.java:29–36  ·  view source on GitHub ↗
(TVMValue... args)

Source from the content-addressed store, hash-verified

27 public void test_reg_sum_number() {
28 Function.register("sum_number", new Function.Callback() {
29 @Override
30 public Object invoke(TVMValue... args) {
31 long res = 0L;
32 for (TVMValue arg : args) {
33 res += arg.asLong();
34 }
35 return res;
36 }
37 });
38 Function func = Function.getFunction("sum_number");
39 TVMValue res = func.pushArg(10).pushArg(20).invoke();

Callers

nothing calls this directly

Calls 9

emptyMethod · 0.95
asFloatArrayMethod · 0.95
convertFuncMethod · 0.95
copyToMethod · 0.80
asLongMethod · 0.45
asStringMethod · 0.45
asBytesMethod · 0.45
asTensorMethod · 0.45
releaseMethod · 0.45

Tested by

no test coverage detected