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

Method apply

src/eliminate_contiguous.cpp:183–192  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

181}
182
183void eliminate_contiguous::apply(module& m) const
184{
185 // Skip contiguous from splits first
186 remove_contiguous(op_name, m, [](auto ins) {
187 if(ins->name() != "slice")
188 return true;
189 return (ins->inputs().front()->outputs().size() == 1);
190 });
191 remove_contiguous(op_name, m, [](auto) { return true; });
192}
193
194} // namespace MIGRAPHX_INLINE_NS
195} // namespace migraphx

Callers

nothing calls this directly

Calls 6

remove_contiguousFunction · 0.85
outputsMethod · 0.80
frontMethod · 0.80
nameMethod · 0.45
sizeMethod · 0.45
inputsMethod · 0.45

Tested by

no test coverage detected