MCPcopy Create free account
hub / github.com/alibaba/MNN / Add

Method Add

tools/cpp/ConfigFile.hpp:198–206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

196
197template <class T>
198void ConfigFile::Add(const std::string& in_key, const T& value) {
199 // Add a key with given value
200 std::string v = T_as_string(value);
201 std::string key = in_key;
202 Trim(key);
203 Trim(v);
204 m_Contents[key] = v;
205 return;
206}
207std::vector<int> stringToDims(const std::string& str, const std::string& pattern) {
208 std::vector<int> res;
209 if (str == "") {

Callers 15

_compileSubModuleFunction · 0.45
makeConcatEinsumModelFunction · 0.45
makeReduceEinsumModelFunction · 0.45
makeConcat3EinsumModelFunction · 0.45
makeResizeModelFunction · 0.45
_internal_add_int_valMethod · 0.45
add_string_valMethod · 0.45

Calls 1

TrimFunction · 0.50

Tested by 4

makeConcatEinsumModelFunction · 0.36
makeReduceEinsumModelFunction · 0.36
makeConcat3EinsumModelFunction · 0.36
makeResizeModelFunction · 0.36