MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / dump_persistent_cache

Method dump_persistent_cache

lite/src/global.cpp:167–174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

165}
166
167void lite::dump_persistent_cache(const std::string& cache_path) {
168 LITE_LOCK_GUARD(cache_control.cache_mutex);
169 LITE_ASSERT(
170 cache_control.cache_type == "file",
171 "now cache type not correct, it can't be dumped.");
172 static_cast<mgb::InFilePersistentCache&>(mgb::PersistentCache::inst())
173 .dump_cache(cache_path.c_str());
174}
175
176//! Set the TensorRT engine cache path for serialized prebuilt ICudaEngine
177void lite::set_tensor_rt_cache(std::string tensorrt_cache_path) {

Callers

nothing calls this directly

Calls 2

instFunction · 0.85
dump_cacheMethod · 0.45

Tested by

no test coverage detected