| 36 | inline namespace MIGRAPHX_INLINE_NS { |
| 37 | |
| 38 | void 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 |
nothing calls this directly
no test coverage detected