(
self,
to_pad: tuple[tuple[int, int]] | None = None,
mode: str = PytorchPadMode.CONSTANT,
lazy: bool = False,
**kwargs,
)
| 107 | backend = [TransformBackends.TORCH, TransformBackends.NUMPY] |
| 108 | |
| 109 | def __init__( |
| 110 | self, |
| 111 | to_pad: tuple[tuple[int, int]] | None = None, |
| 112 | mode: str = PytorchPadMode.CONSTANT, |
| 113 | lazy: bool = False, |
| 114 | **kwargs, |
| 115 | ) -> None: |
| 116 | LazyTransform.__init__(self, lazy) |
| 117 | self.to_pad = to_pad |
| 118 | self.mode = mode |
| 119 | self.kwargs = kwargs |
| 120 | |
| 121 | def compute_pad_width(self, spatial_shape: Sequence[int]) -> tuple[tuple[int, int]]: |
| 122 | """ |
no outgoing calls
no test coverage detected