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

Function writeCacheFile

express/Executor.cpp:210–217  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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);
212 bool res = FileLoader::write(cache->cacheFile.c_str(), buffer);
213 if (!res) {
214 MNN_ERROR("Write Cache File error!\n");
215 return;
216 }
217}
218Executor::RuntimeManager* Executor::RuntimeManager::createRuntimeManager(std::vector<ScheduleConfig>& configs) {
219 if (configs.empty()) {
220 return nullptr;

Callers 1

updateCacheMethod · 0.70

Calls 3

writeFunction · 0.85
getMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected