| 165 | } |
| 166 | |
| 167 | void 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 |
| 177 | void lite::set_tensor_rt_cache(std::string tensorrt_cache_path) { |
nothing calls this directly
no test coverage detected