(op)
| 166 | |
| 167 | |
| 168 | def count_element_op(op): |
| 169 | input_shape = op.inputs("X")[0].shape() |
| 170 | total_ops = np.prod(input_shape[1:]) |
| 171 | total_ops = abs(total_ops) |
| 172 | return total_ops |
| 173 | |
| 174 | |
| 175 | def _graph_flops(graph, detail=False): |
no test coverage detected