MCPcopy Create free account
hub / github.com/Project-MONAI/MONAI / __init__

Method __init__

monai/transforms/croppad/array.py:270–274  ·  view source on GitHub ↗
(
        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

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected