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

Method dump_tensor_rt_cache

lite/src/global.cpp:195–203  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

193}
194
195void lite::dump_tensor_rt_cache() {
196#if MGB_ENABLE_TENSOR_RT
197 if (mgb::TensorRTEngineCache::enable_engine_cache()) {
198 mgb::TensorRTEngineCache::inst().dump_cache();
199 }
200#else
201 LITE_THROW("TensorRT is disable at compile time.");
202#endif
203}
204
205bool lite::register_memory_pair(
206 void* vir_ptr, void* phy_ptr, size_t length, LiteDeviceType device,

Callers

nothing calls this directly

Calls 2

instFunction · 0.85
dump_cacheMethod · 0.45

Tested by

no test coverage detected