Method
__init__
(
self, spatial_border: Sequence[int] | int, mode: str = PytorchPadMode.CONSTANT, lazy: bool = False, **kwargs
)
Source from the content-addressed store, hash-verified
| 268 | """ |
| 269 | |
| 270 | def __init__( |
| 271 | self, spatial_border: Sequence[int] | int, mode: str = PytorchPadMode.CONSTANT, lazy: bool = False, **kwargs |
| 272 | ) -> None: |
| 273 | self.spatial_border = spatial_border |
| 274 | super().__init__(mode=mode, lazy=lazy, **kwargs) |
| 275 | |
| 276 | def compute_pad_width(self, spatial_shape: Sequence[int]) -> tuple[tuple[int, int]]: |
| 277 | spatial_border = ensure_tuple(self.spatial_border) |
Callers
nothing calls this directly
Tested by
no test coverage detected