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

Method apply

src/normalize_ops.cpp:38–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36inline namespace MIGRAPHX_INLINE_NS {
37
38void normalize_ops::apply(module& m) const
39{
40 for(auto ins : iterator_for(m))
41 {
42 auto inputs = ins->inputs();
43 if(inputs.empty())
44 continue;
45
46 auto s = inputs[0]->get_shape();
47 migraphx::operation tuned_op = ins->get_operator();
48 if(normalize_attributes(tuned_op, s))
49 {
50 m.replace_instruction(ins, tuned_op, inputs);
51 ins->set_normalized();
52 }
53 }
54}
55
56} // namespace MIGRAPHX_INLINE_NS
57} // namespace migraphx

Callers

nothing calls this directly

Calls 7

iterator_forFunction · 0.85
normalize_attributesFunction · 0.85
replace_instructionMethod · 0.80
set_normalizedMethod · 0.80
inputsMethod · 0.45
emptyMethod · 0.45
get_shapeMethod · 0.45

Tested by

no test coverage detected