Closed purvaten closed 2 years ago
I was running into issues while using this function for code that was running on a device other than 'cuda:0'.
For example: RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:6 and cuda:0!.
RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:6 and cuda:0!
This simple fix resolves the issue. Cheers!
Thank you @purvaten for the simple solution.
I was running into issues while using this function for code that was running on a device other than 'cuda:0'.
For example:
RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:6 and cuda:0!
.This simple fix resolves the issue. Cheers!