(self, *inputs)
| 1186 | self._pad = [pad_wd // 2, pad_wd - pad_wd // 2, 0, pad_ht] |
| 1187 | |
| 1188 | def pad(self, *inputs): |
| 1189 | return [F.pad(x, self._pad, mode="replicate") for x in inputs] |
| 1190 | |
| 1191 | def unpad(self, x): |
| 1192 | ht, wd = x.shape[-2:] |
no outgoing calls