(self, *inputs)
| 1199 | self._pad = [pad_wd // 2, pad_wd - pad_wd // 2, 0, pad_ht] |
| 1200 | |
| 1201 | def pad(self, *inputs): |
| 1202 | return [F.pad(x, self._pad, mode="replicate") for x in inputs] |
| 1203 | |
| 1204 | def unpad(self, x): |
| 1205 | ht, wd = x.shape[-2:] |
no outgoing calls