Properly disposes of all cached sessions, freeing up memory and
cleaning up resources. This is more thorough than clearSessionCache()
as it also disposes of ONNX Runtime sessions.
Returns Promise<void>
Example
// Dispose all sessions and free resources awaitdisposeAllSessions();
// Verify all sessions are disposed conststats = getCacheStats(); console.log(`Sessions after dispose: ${stats.currentSessions}`);
Dispose all cached sessions.
Properly disposes of all cached sessions, freeing up memory and cleaning up resources. This is more thorough than clearSessionCache() as it also disposes of ONNX Runtime sessions.