I often use  torch.manual_seed 200 in my code. And I also set the same seed to numpy and native python’s random.
But I noticed that there is also torch.cuda.manual_seed 146. I definitely use a single GPU.
So what’s happening if I do not set torch.cuda.manual_seed? For example, torch.randn returns same values without torch.cuda.manual_seed. So I want to know what situations I should use cuda’s manual_seed.
So the following code will be better?
torch.manual_seed(args.seed)
torch.cuda.manual_seed(args.seed)
np.random.seed(args.seed)
random.seed(args.seed)