Solved by ptrblck in post #4 
              
              
                The first one should be more efficient, as the tensor will be directly created on the device, while the other will be created on the CPU first, then pushed onto the GPU.