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

Function select_params

src/module.cpp:944–960  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

942}
943
944static std::vector<instruction_ref>
945select_params(const std::vector<instruction_ref>& instructions,
946 const std::unordered_map<instruction_ref, instruction_ref>& param_map)
947{
948 std::vector<instruction_ref> result;
949 std::vector<instruction_ref> params;
950 std::copy_if(instructions.begin(),
951 instructions.end(),
952 std::back_inserter(params),
953 [&](instruction_ref ins) { return contains(param_map, ins); });
954 sort_params(params);
955 std::transform(params.begin(),
956 params.end(),
957 std::back_inserter(result),
958 [&](instruction_ref ins) { return param_map.at(ins); });
959 return result;
960}
961
962static std::array<module::with_inputs, 2>
963generic_split(const module& m,

Callers 1

generic_splitFunction · 0.85

Calls 7

containsFunction · 0.85
sort_paramsFunction · 0.85
atMethod · 0.80
copy_ifFunction · 0.50
transformFunction · 0.50
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected