manual_seed_all(seed) → None¶
Sets the seed for generating random numbers on all GPUs.
The documentation is referenced from: https://pytorch.org/docs/1.10/generated/torch.cuda.manual_seed_all.html.
It’s safe to call this function if CUDA is not available; in that case, it is silently ignored.
seed (int) – The desired seed.