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

Function loadCache

express/Executor.cpp:195–201  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

193}
194
195static bool loadCache(std::shared_ptr<Runtime> &rt, const void* buffer, size_t size) {
196 auto res = rt->onSetCache(buffer, size);
197 if (res) {
198 return true;
199 }
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) {

Callers 2

setCacheMethod · 0.85
updateCacheMethod · 0.85

Calls 1

onSetCacheMethod · 0.45

Tested by

no test coverage detected