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

Method put

src/tensorrt/impl/tensorrt_engine_cache.cpp:206–209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

204}
205
206void 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
211MGE_WIN_DECLSPEC_DATA std::shared_ptr<TensorRTEngineCache>
212 TensorRTEngineCache::sm_impl = std::make_shared<TensorRTEngineCacheMemory>();

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected