| 106 | } |
| 107 | |
| 108 | void 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 |
nothing calls this directly
no test coverage detected