Skip to content

Commit

Permalink
Merge pull request #3118 from huangzhengxiang/alibaba2
Browse files Browse the repository at this point in the history
update mTuneLws when updateCache is called.
  • Loading branch information
jxt1234 authored Dec 10, 2024
2 parents 4c75ee7 + c1889ce commit 0046e50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions express/Executor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<bool> Executor::RuntimeManager::isBackendSupport(const std::vector<MNNForwardType> types) {
Expand Down

0 comments on commit 0046e50

Please sign in to comment.