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

Function sort_params

src/param_utils.cpp:47–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45}
46
47void sort_params(std::vector<instruction_ref>& params)
48{
49 std::sort(params.begin(), params.end(), by(std::less<>{}, [](instruction_ref ins) {
50 const auto& param = any_cast<const builtin::param&>(ins->get_operator());
51 return param.parameter;
52 }));
53}
54
55template <class F>
56static std::vector<instruction_ref>

Callers 3

get_ins_param_mapMethod · 0.85
get_inputsMethod · 0.85
select_paramsFunction · 0.85

Calls 4

sortFunction · 0.50
byFunction · 0.50
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected