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

Method __init__

monai/transforms/croppad/array.py:109–119  ·  view source on GitHub ↗
(
        self,
        to_pad: tuple[tuple[int, int]] | None = None,
        mode: str = PytorchPadMode.CONSTANT,
        lazy: bool = False,
        **kwargs,
    )

Source from the content-addressed store, hash-verified

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 """

Callers 15

__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected