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

Method apply

src/inline_module.cpp:51–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49}
50
51void inline_module::apply(module& m) const
52{
53 for(auto ins : iterator_for(m))
54 {
55 if(ins->name() != "if")
56 continue;
57
58 auto arg_cond = ins->inputs().front()->eval();
59 if(not arg_cond.empty())
60 {
61 bool cond = arg_cond.at<bool>();
62 inline_submodule(m, ins, cond);
63 }
64 }
65}
66
67} // namespace MIGRAPHX_INLINE_NS
68} // namespace migraphx

Callers

nothing calls this directly

Calls 7

iterator_forFunction · 0.85
inline_submoduleFunction · 0.85
frontMethod · 0.80
nameMethod · 0.45
evalMethod · 0.45
inputsMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected