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

Method RegisterOpSaveMethod

core/include/serializer.hpp:107–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105 }
106
107 bool RegisterOpSaveMethod(const std::string& op_name, const any& save_func)
108 {
109 if(op_save_map_.count(op_name))
110 return false;
111
112 op_save_map_[op_name] = save_func;
113 return true;
114 }
115
116 bool FindOpSaveMethod(const std::string& op_name)
117 {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected