Solved by ptrblck in post #3 
              
              
                You could pass your torch.Generator manually to the random function. 
I’m not sure, if this API will change in the future, as this argument is not documented as far as I know and maybe shouldn’t be exposed in the current implementation. 
However, I think this code should work: 
gen0 = torch.Generato…