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

Method __init__

monai/transforms/utility/array.py:402–413  ·  view source on GitHub ↗
(
        self,
        dtype: torch.dtype | None = None,
        device: torch.device | str | None = None,
        wrap_sequence: bool = True,
        track_meta: bool | None = None,
    )

Source from the content-addressed store, hash-verified

400 backend = [TransformBackends.TORCH]
401
402 def __init__(
403 self,
404 dtype: torch.dtype | None = None,
405 device: torch.device | str | None = None,
406 wrap_sequence: bool = True,
407 track_meta: bool | None = None,
408 ) -> None:
409 super().__init__()
410 self.dtype = dtype
411 self.device = device
412 self.wrap_sequence = wrap_sequence
413 self.track_meta = get_track_meta() if track_meta is None else bool(track_meta)
414
415 def __call__(self, img: NdarrayOrTensor):
416 """

Callers

nothing calls this directly

Calls 2

get_track_metaFunction · 0.90
__init__Method · 0.45

Tested by

no test coverage detected