ray.rllib.utils.torch_utils.set_torch_seed#

ray.rllib.utils.torch_utils.set_torch_seed(seed: int | None = None) None[source]#

Sets the torch random seed to the given value.

Parameters:

seed – The seed to use or None for no seeding.