| 204 | } |
| 205 | |
| 206 | void TensorRTEngineCacheIO::put(const std::string& key, const Engine& value) { |
| 207 | MGB_LOCK_GUARD(m_mtx); |
| 208 | m_cache[key].init_from_buf(value.ptr, value.size); |
| 209 | } |
| 210 | |
| 211 | MGE_WIN_DECLSPEC_DATA std::shared_ptr<TensorRTEngineCache> |
| 212 | TensorRTEngineCache::sm_impl = std::make_shared<TensorRTEngineCacheMemory>(); |
no outgoing calls
no test coverage detected