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

Method getFunction

jvm/core/src/main/java/org/apache/tvm/Module.java:77–84  ·  view source on GitHub ↗

Get function from the module. @param name The name of the function. @param queryImports Whether also query modules imported by this module. @return The result function.

(String name, boolean queryImports)

Source from the content-addressed store, hash-verified

75 * @return The result function.
76 */
77 public Function getFunction(String name, boolean queryImports) {
78 TVMValue ret = getApi("ffi.ModuleGetFunction")
79 .pushArg(this)
80 .pushArg(name)
81 .pushArg(queryImports ? 1 : 0)
82 .invoke();
83 return ret.asFunction();
84 }
85
86 public Function getFunction(String name) {
87 return getFunction(name, false);

Callers 1

entryFuncMethod · 0.95

Calls 4

getApiMethod · 0.95
asFunctionMethod · 0.95
pushArgMethod · 0.80
invokeMethod · 0.65

Tested by

no test coverage detected