Solved by richard in post #2 
              
              
                The randn docs suggest that randn can take an out argument. You can do something like 
shape = torch.Size((300, 300))
x = torch.cuda.FloatTensor(shape)
torch.randn(shape, out=x)