Does torch.manual_seed() hash inputs?

Hi –
The openAI gym environments use a seed() method that hashes its input; the relevant code snippet:

    seed = create_seed(seed)

    rng = np.random.RandomState()

(from here).

Does torch.manual_seed() do the same? This isn’t mentioned in the docs.


We don’t do any hashing of the seed.
But the rng engine might depending on which one is used (cuda or cpu).

1 Like