Hey but shouldn’t torch.manual_seed take care of both as written in https://pytorch.org/docs/stable/notes/randomness.html 334
You can use  torch.manual_seed()  193 to seed the RNG for all devices (both CPU and CUDA)