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

Function getCache

express/Executor.cpp:202–208  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

200 return false;
201}
202static std::pair<const void*, size_t> getCache(std::shared_ptr<Runtime> &rt) {
203 auto res = rt->onGetCache();
204 if (res.first != nullptr) {
205 return res;
206 }
207 return std::make_pair(nullptr, 0);
208}
209
210static void writeCacheFile(std::shared_ptr<Cache> cache, std::pair<const void*, size_t> buffer) {
211 auto verifyInfo = std::make_pair((const void*)cache->modelBuffer.get(), cache->cacheOffset);

Callers 2

onResizeEndMethod · 0.85
updateCacheMethod · 0.85

Calls 1

onGetCacheMethod · 0.45

Tested by

no test coverage detected