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

Function append_replace_map

src/jit/include/megbrain/jit/utils.h:26–32  ·  view source on GitHub ↗

append new (k, v) pairs to a replace map

Source from the content-addressed store, hash-verified

24
25//! append new (k, v) pairs to a replace map
26static inline void append_replace_map(
27 StrReplaceMap& map,
28 std::initializer_list<std::pair<std::string, std::string>> newitems) {
29 for (auto&& i : newitems) {
30 map.push_back(std::move(i));
31 }
32}
33
34template <typename T>
35inline std::string str(T i) {

Callers 4

gen_input_codeFunction · 0.85
codegen_cudaMethod · 0.85
codegen_openclMethod · 0.85

Calls 1

push_backMethod · 0.45

Tested by

no test coverage detected