Skip to content

Commit

Permalink
Merge branch 'alibaba:master' into mnn_kai_sme
Browse files Browse the repository at this point in the history
  • Loading branch information
xhzheng1895 authored Dec 11, 2024
2 parents 20d9b5f + 0046e50 commit b5a3900
Show file tree
Hide file tree
Showing 2 changed files with 5 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
3 changes: 3 additions & 0 deletions source/utils/InitNet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,9 @@ bool initTensors(std::vector<std::shared_ptr<Tensor>>& tensors, const Net* net,
}
auto blob = des->blob();
auto& tb = tensors[index]->buffer();
if (nullptr == blob) {
continue;
}
if (auto idims = blob->dims()) {
for (int d = 0; d < idims->size(); d++) {
tb.dim[d].extent = idims->Get(d);
Expand Down

0 comments on commit b5a3900

Please sign in to comment.