MCPcopy Create free account
hub / github.com/ROCm/AMDMIGraphX / is_unused_module

Function is_unused_module

src/program.cpp:1280–1289  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1278
1279template <class Map, class T>
1280MIGRAPHX_DEBUG_USED static bool
1281is_unused_module(Map& m, const std::vector<T*>& mods, const std::string& name)
1282{
1283 bool is_unused = false;
1284 generic_get_unused_modules(m, mods, make_function_output_iterator([&](auto* mod) {
1285 if(mod->name() == name)
1286 is_unused = true;
1287 }));
1288 return is_unused;
1289}
1290
1291template <class Map>
1292MIGRAPHX_DEBUG_USED static bool

Callers 1

remove_moduleMethod · 0.85

Calls 3

nameMethod · 0.45

Tested by

no test coverage detected