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

Method randomize

monai/transforms/spatial/dictionary.py:744–746  ·  view source on GitHub ↗
(self, data: Any | None = None)

Source from the content-addressed store, hash-verified

742 self._rand_k = 0
743
744 def randomize(self, data: Any | None = None) -> None:
745 self._rand_k = self.R.randint(self.max_k) + 1
746 super().randomize(None)
747
748 def __call__(
749 self, data: Mapping[Hashable, torch.Tensor], lazy: bool | None = None

Callers 11

__call__Method · 0.95
__call__Method · 0.45
__call__Method · 0.45
__call__Method · 0.45
__call__Method · 0.45
__call__Method · 0.45
__call__Method · 0.45
__call__Method · 0.45
__call__Method · 0.45
__call__Method · 0.45
__call__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected