(input_size, weight_size)
| 168 | |
| 169 | @staticmethod |
| 170 | def from_sizes(input_size, weight_size): |
| 171 | K, R, S, _ = weight_size |
| 172 | pad_h = R // 2 |
| 173 | pad_w = S // 2 |
| 174 | stride_h = 1 |
| 175 | stride_w = 1 |
| 176 | dilation_h = 1 |
| 177 | dilation_w = 1 |
| 178 | return Conv2DProblemSize( |
| 179 | *input_size, |
| 180 | *weight_size, |
| 181 | pad_h, pad_w, |
| 182 | stride_h, stride_w, |
| 183 | dilation_h, dilation_w |
| 184 | ) |
no test coverage detected