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

Method dispose

web/src/runtime.ts:961–970  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

959 }
960
961 dispose(): void {
962 this.deviceLostIsError = false; // prevent dispose to trigger device.lost error
963 // order matters
964 // dispose caches before ctx
965 this.cacheState.dispose();
966 // ctx release goes back into lib.
967 this.ctx.dispose();
968 this.lib.dispose();
969 // Cannot set deviceLostIsError back to true here because GPUDevice.destroy() is asynchronous.
970 }
971
972 /**
973 * Obtain the runtime information in readable format.

Callers 13

initWebGPUMethod · 0.95
onCloseMethod · 0.45
disposeMethod · 0.45
disposeMethod · 0.45
endScopeMethod · 0.45
disposeMethod · 0.45
onFulfilledMethod · 0.45
onRejectedMethod · 0.45
timeExecutionMethod · 0.45
makePackedFuncMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected