(m, x, y)
| 157 | |
| 158 | |
| 159 | def count_avgpool(m, x, y): |
| 160 | total_add = torch.prod(torch.Tensor([m.kernel_size])) |
| 161 | total_div = 1 |
| 162 | kernel_ops = total_add + total_div |
| 163 | num_elements = y.numel() |
| 164 | total_ops = kernel_ops * num_elements |
| 165 | |
| 166 | m.total_ops = torch.Tensor([int(total_ops)]) |
| 167 | |
| 168 | |
| 169 | def count_adap_avgpool(m, x, y): |
nothing calls this directly
no outgoing calls
no test coverage detected