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

Method set_random_state

monai/transforms/spatial/dictionary.py:1604–1606  ·  view source on GitHub ↗
(self, seed: int | None = None, state: np.random.RandomState | None = None)

Source from the content-addressed store, hash-verified

1602 self._lazy = val
1603
1604 def set_random_state(self, seed: int | None = None, state: np.random.RandomState | None = None) -> RandFlipd:
1605 super().set_random_state(seed, state)
1606 return self
1607
1608 def __call__(self, data: Mapping[Hashable, torch.Tensor], lazy: bool | None = None) -> dict[Hashable, torch.Tensor]:
1609 """

Callers 9

set_random_stateMethod · 0.45
set_random_stateMethod · 0.45
set_random_stateMethod · 0.45
set_random_stateMethod · 0.45
set_random_stateMethod · 0.45
set_random_stateMethod · 0.45
set_random_stateMethod · 0.45
set_random_stateMethod · 0.45
set_random_stateMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected