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

Method attachToCurrentScope

web/src/runtime.ts:1027–1029  ·  view source on GitHub ↗

* Attach a detached obj to the auto-release pool of the current scope. * * @param obj The input obj. * Note: Normally user do not need to call this function explicitly, as * all library call return values are explicitly attached to * the current scope. You only need to do

(obj: T)

Source from the content-addressed store, hash-verified

1025 * {@link detachFromCurrentScope} to create a detached object.
1026 */
1027 attachToCurrentScope<T extends Disposable>(obj: T): T {
1028 return this.ctx.attachToCurrentScope(obj);
1029 }
1030
1031 /**
1032 * Move obj's attachment to the parent scope.

Callers 5

getGlobalFuncInternalMethod · 0.45
toPackedFuncInternalMethod · 0.45
createVirtualMachineMethod · 0.45
retValueToJSMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected