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

Method isPackedFunc

web/src/runtime.ts:1151–1153  ·  view source on GitHub ↗

* Check if func is PackedFunc. * * @param func The input. * @returns The check result.

(func: unknown)

Source from the content-addressed store, hash-verified

1149 * @returns The check result.
1150 */
1151 isPackedFunc(func: unknown): boolean {
1152 return typeof func === "function" && func.hasOwnProperty("_tvmPackedCell");
1153 }
1154
1155 /**
1156 * Convert func to PackedFunc

Callers 4

toPackedFuncInternalMethod · 0.95
test_vm.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected