rofunc.learning.utils.utils#

1.  Module Contents#

1.1.  Functions#

set_seed

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).

to_device

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).

rofunc.learning.utils.utils.to_device(x, device)[source]#