If the model predictions and targets are already on the GPU, I would keep them there, since the cpu()
operation would synchronize the code, and might lower the performance.
2 Likes
If the model predictions and targets are already on the GPU, I would keep them there, since the cpu()
operation would synchronize the code, and might lower the performance.