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

Method apply

src/insert_pad.cpp:108–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106}
107
108void insert_pad::apply(module& m) const
109{
110 for(auto ins : iterator_for(m))
111 {
112 const std::string& op_name = ins->name();
113 if(not contains(ops, op_name))
114 continue;
115 auto input = ins->inputs().front();
116 if(op_name == "convolution" or op_name == "im2col")
117 update_op(input, ins, m);
118 else if(op_name == "pooling")
119 update_pooling(input, ins, m);
120 }
121}
122
123} // namespace MIGRAPHX_INLINE_NS
124} // namespace migraphx

Callers

nothing calls this directly

Calls 7

iterator_forFunction · 0.85
containsFunction · 0.85
frontMethod · 0.80
update_opFunction · 0.70
update_poolingFunction · 0.70
nameMethod · 0.45
inputsMethod · 0.45

Tested by

no test coverage detected