rofunc.learning.utils.utils#
1. Module Contents#
1.1. Functions#
Set the seed for the random number generators
:param seed: The seed to set. Is None, a random seed will be generated (default: |
|
1.2. API#
- rofunc.learning.utils.utils.set_seed(seed: Optional[int] = None, deterministic: bool = False) int[source]#
Set the seed for the random number generators :param seed: The seed to set. Is None, a random seed will be generated (default:
None) :param deterministic: Whether PyTorch is configured to use deterministic algorithms (default:False).