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

Function parse_info_cache

lite/src/parse_info/cache_parse.h:9–21  ·  view source on GitHub ↗

The LITE_parse_cache parse info function

Source from the content-addressed store, hash-verified

7namespace lite {
8//! The LITE_parse_cache parse info function
9bool parse_info_cache(
10 const uint8_t* cache, size_t cache_length, bool is_fast_run_cache = true,
11 const uint8_t* binary_cache = nullptr, size_t binary_cache_length = 0) {
12 LITE_MARK_USED_VAR(binary_cache);
13 LITE_MARK_USED_VAR(binary_cache_length);
14#if LITE_BUILD_WITH_MGE
15 if (is_fast_run_cache) {
16 mgb::PersistentCache::set_impl(
17 std::make_shared<mgb::InFilePersistentCache>(cache, cache_length));
18 }
19#endif
20 return true;
21}
22
23} // namespace lite
24

Callers 1

parse_model_infoMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected