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

Function writeCacheFile

source/core/Interpreter.cpp:54–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54static void writeCacheFile(const Content* net, std::pair<const void*, size_t> buffer) {
55 bool res = FileLoader::write(net->cacheFile.c_str(), buffer);
56 if (!res) {
57 MNN_ERROR("Write Cache File error!\n");
58 return;
59 }
60}
61
62static Content* loadModelFile(const char* file) {
63 if (nullptr == file) {

Callers 2

updateCacheFileMethod · 0.70

Calls 2

writeFunction · 0.85
c_strMethod · 0.45

Tested by

no test coverage detected