MCPcopy Create free account
hub / github.com/OAID/Tengine / RegisterOpLoadMethod

Method RegisterOpLoadMethod

core/include/serializer.hpp:85–92  ·  view source on GitHub ↗

helper functions */

Source from the content-addressed store, hash-verified

83
84 /* helper functions */
85 bool RegisterOpLoadMethod(const std::string& op_name, const any& load_func)
86 {
87 if(op_load_map_.count(op_name))
88 return false;
89
90 op_load_map_[op_name] = load_func;
91 return true;
92 }
93
94 bool FindOpLoadMethod(const std::string& op_name)
95 {

Calls

no outgoing calls

Tested by

no test coverage detected