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

Method randomize

monai/transforms/spatial/array.py:2759–2764  ·  view source on GitHub ↗
(self, spatial_size: Sequence[int])

Source from the content-addressed store, hash-verified

2757 self.device = device
2758
2759 def randomize(self, spatial_size: Sequence[int]) -> None:
2760 super().randomize(None)
2761 if not self._do_transform:
2762 return None
2763 self.deform_grid.randomize(spatial_size)
2764 self.rand_affine_grid.randomize()
2765
2766 def __call__(
2767 self,

Callers 1

__call__Method · 0.95

Calls 1

randomizeMethod · 0.45

Tested by

no test coverage detected