ray.rllib.utils.torch_utils.set_torch_seed#

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

Sets the torch random seed to the given value.

Parameters

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