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()
    rng.seed(_int_list_from_bigint(hash_seed(seed)))

(from here).

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

Hi,

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