fix device for input tensor

4 jobs for fix-pytorch in 48 minutes and 57 seconds (queued for 8 seconds)