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

Method rename_parameter

src/module.cpp:686–696  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

684}
685
686void module::rename_parameter(instruction_ref ins, const std::string& name)
687{
688 impl->changed.notify();
689 assert(ins->name() == "@param");
690 auto op = any_cast<builtin::param>(ins->get_operator());
691 op.parameter = name;
692 auto outputs = ins->outputs();
693 *ins = instruction{op, ins->get_shape(), {}};
694 for(auto output : outputs)
695 ins->add_output(output);
696}
697
698std::unordered_map<std::string, shape> module::get_parameter_shapes() const
699{

Callers 1

applyMethod · 0.80

Calls 5

notifyMethod · 0.80
outputsMethod · 0.80
add_outputMethod · 0.80
nameMethod · 0.45
get_shapeMethod · 0.45

Tested by

no test coverage detected