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

Method get_parameter

src/module.cpp:657–674  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

655}
656
657instruction_ref module::get_parameter(std::string name) const
658{
659 auto ins = std::find_if(
660 impl->instructions.begin(), impl->instructions.end(), [&](const instruction& x) {
661 if(x.name() == "@param")
662 {
663 return any_cast<builtin::param>(x.get_operator()).parameter == name;
664 }
665 else
666 {
667 return false;
668 }
669 });
670 if(ins != this->end())
671 return ins;
672 else
673 return this->end();
674}
675
676std::vector<instruction_ref> module::get_parameters() const
677{

Callers 15

TEST_CASEFunction · 0.45
TEST_CASEFunction · 0.45
TEST_CASEFunction · 0.45
create_mlir_submoduleFunction · 0.45
any_sm_nextFunction · 0.45
applyMethod · 0.45
applyMethod · 0.45
is_offload_copy_setFunction · 0.45
applyMethod · 0.45
insertMethod · 0.45
adjust_param_shapesFunction · 0.45

Calls 4

endMethod · 0.95
find_ifFunction · 0.50
beginMethod · 0.45
nameMethod · 0.45

Tested by 2

TEST_CASEFunction · 0.36
TEST_CASEFunction · 0.36