| 29 | |
| 30 | template <typename Args, typename ValueType> |
| 31 | void MIOpenCache<Args, ValueType>::set(const Args& args, ValueType val) { |
| 32 | std::string key = args.to_miopen_algo_cache_key().to_string_binary(); |
| 33 | std::lock_guard<std::mutex> guard{m_mtx}; |
| 34 | m_cache[key] = val; |
| 35 | } |
| 36 | |
| 37 | template <typename Args, typename ValueType> |
| 38 | std::pair<bool, ValueType> MIOpenCache<Args, ValueType>::get(const Args& args) { |
no test coverage detected