(
self,
spatial_size: Sequence[int] | int,
size_mode: str = "all",
mode: str = InterpolateMode.AREA,
align_corners: bool | None = None,
anti_aliasing: bool = False,
anti_aliasing_sigma: Sequence[float] | float | None = None,
dtype: DtypeLike | torch.dtype = torch.float32,
lazy: bool = False,
)
| 790 | backend = [TransformBackends.TORCH] |
| 791 | |
| 792 | def __init__( |
| 793 | self, |
| 794 | spatial_size: Sequence[int] | int, |
| 795 | size_mode: str = "all", |
| 796 | mode: str = InterpolateMode.AREA, |
| 797 | align_corners: bool | None = None, |
| 798 | anti_aliasing: bool = False, |
| 799 | anti_aliasing_sigma: Sequence[float] | float | None = None, |
| 800 | dtype: DtypeLike | torch.dtype = torch.float32, |
| 801 | lazy: bool = False, |
| 802 | ) -> None: |
| 803 | LazyTransform.__init__(self, lazy=lazy) |
| 804 | self.size_mode = look_up_option(size_mode, ["all", "longest"]) |
| 805 | self.spatial_size = spatial_size |
| 806 | self.mode = mode |
| 807 | self.align_corners = align_corners |
| 808 | self.anti_aliasing = anti_aliasing |
| 809 | self.anti_aliasing_sigma = anti_aliasing_sigma |
| 810 | self.dtype = dtype |
| 811 | |
| 812 | def __call__( |
| 813 | self, |
nothing calls this directly
no test coverage detected