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

Method __init__

monai/transforms/spatial/array.py:1083–1101  ·  view source on GitHub ↗
(
        self,
        zoom: Sequence[float] | float,
        mode: str = InterpolateMode.AREA,
        padding_mode: str = NumpyPadMode.EDGE,
        align_corners: bool | None = None,
        dtype: DtypeLike | torch.dtype = torch.float32,
        keep_size: bool = True,
        lazy: bool = False,
        **kwargs,
    )

Source from the content-addressed store, hash-verified

1081 backend = [TransformBackends.TORCH]
1082
1083 def __init__(
1084 self,
1085 zoom: Sequence[float] | float,
1086 mode: str = InterpolateMode.AREA,
1087 padding_mode: str = NumpyPadMode.EDGE,
1088 align_corners: bool | None = None,
1089 dtype: DtypeLike | torch.dtype = torch.float32,
1090 keep_size: bool = True,
1091 lazy: bool = False,
1092 **kwargs,
1093 ) -> None:
1094 LazyTransform.__init__(self, lazy=lazy)
1095 self.zoom = zoom
1096 self.mode = mode
1097 self.padding_mode = padding_mode
1098 self.align_corners = align_corners
1099 self.dtype = dtype
1100 self.keep_size = keep_size
1101 self.kwargs = kwargs
1102
1103 def __call__(
1104 self,

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected