jdhao:

Is there any difference between these two methods in terms of moving module or tensor to GPU?


No



 jdhao:

Which method is preferred?


.to is preferred because you can define a device object and use it everywhere.