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

Method toPackedFuncInternal

web/src/runtime.ts:1165–1170  ·  view source on GitHub ↗
(func: Function, autoAttachToScope: boolean)

Source from the content-addressed store, hash-verified

1163 }
1164
1165 private toPackedFuncInternal(func: Function, autoAttachToScope: boolean): PackedFunc {
1166 if (this.isPackedFunc(func)) return func as PackedFunc;
1167 const ret = this.createPackedFuncFromSafeCallType(this.wrapJSFuncAsSafeCallType(func));
1168 if (autoAttachToScope) return this.ctx.attachToCurrentScope(ret);
1169 return ret;
1170 }
1171
1172 /**
1173 * Setup a virtual machine module with given device.

Callers 3

registerFuncMethod · 0.95
toPackedFuncMethod · 0.95
setPackedArgumentsMethod · 0.95

Calls 4

isPackedFuncMethod · 0.95
attachToCurrentScopeMethod · 0.45

Tested by

no test coverage detected