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

Method put

dnn/test/common/fast_run_cache.cpp:26–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24}
25
26void FastRunCache::put(
27 const Algorithm::SearchItem& key, const Algorithm::Info::Desc& val) {
28 SearchItemStorage key_storage(key);
29 key_storage.init_hash();
30 megdnn_assert(m_cache.find(key_storage) == m_cache.end());
31 m_cache[std::move(key_storage)] = val;
32}
33
34// vim: syntax=cpp.doxygen

Callers 4

write_magicFunction · 0.45
write_magicFunction · 0.45
write_magicFunction · 0.45
searchMethod · 0.45

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected