From c1889ce397006aac0539dea5b698dc16026e7ce2 Mon Sep 17 00:00:00 2001 From: hzx Date: Tue, 10 Dec 2024 10:39:44 +0800 Subject: [PATCH] update mTuneLws when updateCache is called. --- express/Executor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/express/Executor.cpp b/express/Executor.cpp index 4b48c0d90..6c370d6a4 100644 --- a/express/Executor.cpp +++ b/express/Executor.cpp @@ -376,9 +376,9 @@ void Executor::RuntimeManager::updateCache() { MNN_PRINT("Update cache to %s, size = %zu\n", mInside->mCache->cacheFile.c_str(), buffer.second); writeCacheFile(mInside->mCache, buffer); mInside->mCache->lastCacheSize = buffer.second; + // Reset cache + loadCache(mInside->mInfo, buffer.first, buffer.second); } - // Reset cache - loadCache(mInside->mInfo, nullptr, 0); } std::vector Executor::RuntimeManager::isBackendSupport(const std::vector types) {