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

Method __init__

monai/transforms/croppad/array.py:545–547  ·  view source on GitHub ↗
(self, roi_scale: Sequence[float] | float, lazy: bool = False)

Source from the content-addressed store, hash-verified

543 """
544
545 def __init__(self, roi_scale: Sequence[float] | float, lazy: bool = False):
546 super().__init__(lazy=lazy)
547 self.roi_scale = roi_scale
548
549 def __call__(self, img: torch.Tensor, lazy: bool | None = None) -> torch.Tensor: # type: ignore[override]
550 img_size = img.peek_pending_shape() if isinstance(img, MetaTensor) else img.shape[1:]

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected