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

Method detachFromCurrentScope

web/src/runtime.ts:1054–1056  ·  view source on GitHub ↗

* Detach the object from the current scope * so it won't be released via auto-release during endscope. * * User needs to either explicitly call obj.dispose(), or * attachToCurrentScope to re-attach to the current scope. * * This function can be used to return values to the

(obj: T)

Source from the content-addressed store, hash-verified

1052 * @param obj The object.
1053 */
1054 detachFromCurrentScope<T extends Disposable>(obj: T): T {
1055 return this.ctx.detachFromCurrentScope(obj);
1056 }
1057
1058 /**
1059 * Get system-wide library module in the wasm.

Callers 9

makeShapeTupleMethod · 0.95
asyncVariantMethod · 0.95
asyncInitServerMethod · 0.45
createVirtualMachineMethod · 0.45
timeExecutionMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected