MCPcopy Create free account
hub / github.com/alibaba/MNN / loadCache

Method loadCache

source/core/Session.cpp:202–210  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

200}
201
202bool Session::loadCache(const void* buffer, size_t size) {
203 for (auto iter : mRuntime.first) {
204 auto res = iter.second->onSetCache(buffer, size);
205 if (res) {
206 return true;
207 }
208 }
209 return false;
210}
211void Session::waitAsyncResize() {
212 for (auto& iter : mRuntime.first) {
213 iter.second->waitAsyncWork();

Callers 2

updateCacheFileMethod · 0.80

Calls 1

onSetCacheMethod · 0.45

Tested by

no test coverage detected