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

Method __init__

monai/transforms/spatial/array.py:941–957  ·  view source on GitHub ↗
(
        self,
        angle: Sequence[float] | float,
        keep_size: bool = True,
        mode: str = GridSampleMode.BILINEAR,
        padding_mode: str = GridSamplePadMode.BORDER,
        align_corners: bool = False,
        dtype: DtypeLike | torch.dtype = torch.float32,
        lazy: bool = False,
    )

Source from the content-addressed store, hash-verified

939 backend = [TransformBackends.TORCH]
940
941 def __init__(
942 self,
943 angle: Sequence[float] | float,
944 keep_size: bool = True,
945 mode: str = GridSampleMode.BILINEAR,
946 padding_mode: str = GridSamplePadMode.BORDER,
947 align_corners: bool = False,
948 dtype: DtypeLike | torch.dtype = torch.float32,
949 lazy: bool = False,
950 ) -> None:
951 LazyTransform.__init__(self, lazy=lazy)
952 self.angle = angle
953 self.keep_size = keep_size
954 self.mode: str = mode
955 self.padding_mode: str = padding_mode
956 self.align_corners = align_corners
957 self.dtype = dtype
958
959 def __call__(
960 self,

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected