(self, spatial_shape: Sequence[int])
| 337 | super().__init__(mode=mode, lazy=lazy, **kwargs) |
| 338 | |
| 339 | def compute_pad_width(self, spatial_shape: Sequence[int]) -> tuple[tuple[int, int]]: |
| 340 | new_size = compute_divisible_spatial_size(spatial_shape=spatial_shape, k=self.k) |
| 341 | spatial_pad = SpatialPad(spatial_size=new_size, method=self.method) |
| 342 | return spatial_pad.compute_pad_width(spatial_shape) |
| 343 | |
| 344 | |
| 345 | class Crop(InvertibleTransform, LazyTransform): |
nothing calls this directly
no test coverage detected