Set seeds in random
, numpy
and torch
.
- Parameters
seed (int) – the seed for all mentioned libraries. Must be a non-negative number less
than 2 ** 32 - 1
.
- Raises
AssertionError – if the seed is not within the required interval
- Return type
None
Examples