Method
__init__
(
self,
max_size: int,
min_size: int,
stride: int,
max_pixels: int,
interpolation=InterpolationMode.BICUBIC,
antialias=True
)
Source from the content-addressed store, hash-verified
| 49 | """ |
| 50 | |
| 51 | def __init__( |
| 52 | self, |
| 53 | max_size: int, |
| 54 | min_size: int, |
| 55 | stride: int, |
| 56 | max_pixels: int, |
| 57 | interpolation=InterpolationMode.BICUBIC, |
| 58 | antialias=True |
| 59 | ): |
| 60 | super().__init__() |
| 61 | self.max_size = max_size |
| 62 | self.min_size = min_size |
| 63 | self.stride = stride |
| 64 | self.max_pixels = max_pixels |
| 65 | self.interpolation = interpolation |
| 66 | self.antialias = antialias |
| 67 | |
| 68 | def _make_divisible(self, value, stride): |
| 69 | """Ensure the value is divisible by the stride.""" |
Callers
nothing calls this directly
Tested by
no test coverage detected