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

Method replace

src/module.cpp:1165–1172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1163}
1164
1165void module_with_inputs::replace(instruction_ref ins, instruction_ref rep)
1166{
1167 auto it = std::find(inputs.begin(), inputs.end(), ins);
1168 if(it == inputs.end())
1169 return;
1170 assert((*it)->get_shape().lens() == rep->get_shape().lens());
1171 *it = rep;
1172}
1173void module_with_inputs::replace(
1174 const std::unordered_map<instruction_ref, instruction_ref>& map_ins)
1175{

Callers 13

template_evalFunction · 0.45
generate_callFunction · 0.45
template_evalFunction · 0.45
mainFunction · 0.45
preprocessMethod · 0.45
TEST_CASEFunction · 0.45
TEST_CASEFunction · 0.45
TEST_CASEFunction · 0.45
applyMethod · 0.45
splitMethod · 0.45
tokenize_with_weightsMethod · 0.45
write_predictionsFunction · 0.45

Calls 7

findFunction · 0.85
containsFunction · 0.85
lensMethod · 0.80
atMethod · 0.80
beginMethod · 0.45
endMethod · 0.45
get_shapeMethod · 0.45

Tested by 1

TEST_CASEFunction · 0.36