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

Method get_inputs

src/module.cpp:929–942  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

927}
928
929std::vector<instruction_ref>
930module::get_inputs(const std::unordered_map<instruction_ref, instruction_ref>& map_ins) const
931{
932 std::vector<instruction_ref> inputs;
933 auto params = this->get_parameters();
934 sort_params(params);
935
936 std::transform(params.begin(),
937 params.end(),
938 std::back_inserter(inputs),
939 [&](instruction_ref param) { return map_ins.at(param); });
940
941 return inputs;
942}
943
944static std::vector<instruction_ref>
945select_params(const std::vector<instruction_ref>& instructions,

Callers 9

mainFunction · 0.80
mainFunction · 0.80
TEST_CASEFunction · 0.80
applyMethod · 0.80
applyMethod · 0.80
applyMethod · 0.80
ort_comparison.pyFile · 0.80
mainFunction · 0.80

Calls 6

get_parametersMethod · 0.95
sort_paramsFunction · 0.85
atMethod · 0.80
transformFunction · 0.50
beginMethod · 0.45
endMethod · 0.45

Tested by 1

TEST_CASEFunction · 0.64