keep_random_state¶
-
ignite.engine.deterministic.
keep_random_state
(func)[source]¶ Helper decorator to keep random state of torch, numpy and random intact while executing a function. For more details on usage, please see Dataflow synchronization.
- Parameters
func (Callable) – function to decorate
- Return type
Callable