I know CPU and GPU’s random are different.
The issue is in Linux not Windows.
we could add one line to force manual_seed as 1234 and comment it later.
we’ll find the real and imag value are different if the device is cuda:0
#torch. manual_seed(1234)
real = torch.rand(size, device=device, dtype=float_dtype) * span + low
imag = torch.rand(size, device=device, dtype=float_dtype) * span + low
So, is it caused by samples generated by other tests?