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

Method uninstall

src/custom/impl/manager.cpp:94–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92}
93
94std::vector<std::string> CustomOpManager::uninstall(const std::string& name) {
95 MGB_LOCK_GUARD(m_lib_mtx);
96 std::vector<std::string> op_names = m_custom_libs[name]->ops_in_lib();
97 mgb_assert(m_custom_libs.erase(name) == 1, "uninstall error");
98 return op_names;
99}
100
101const std::unordered_map<std::string, LibHandle>& CustomOpManager::lib_info(
102 void) const {

Callers 1

uninstall_customFunction · 0.80

Calls 1

eraseMethod · 0.45

Tested by

no test coverage detected