Solved by SimonW in post #9 
              
              
                For now use this pattern torch.cuda.*Tensor(*shape).inplace_sampling_method_here_(). Here are the available inplace sampling methods: http://pytorch.org/docs/master/torch.html#in-place-random-sampling. Notice that these are the basic building block distributions. You can use the results to generate …