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

Function get_operators

src/register_op.cpp:54–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52bool has_op(const std::string& name) { return op_map().count(name) == 1; }
53
54std::vector<std::string> get_operators()
55{
56 std::vector<std::string> result;
57 std::transform(op_map().begin(), op_map().end(), std::back_inserter(result), [&](auto&& p) {
58 return p.first;
59 });
60 std::sort(result.begin(), result.end());
61 return result;
62}
63
64} // namespace MIGRAPHX_INLINE_NS
65} // namespace migraphx

Callers 2

TEST_CASEFunction · 0.85
runMethod · 0.85

Calls 4

transformFunction · 0.50
sortFunction · 0.50
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected