When I try to use topk or kmax on the GPU, the following error occurs:
ipdb> dist.kmax(5)
*** RuntimeError: Expected condition, x and y to be on the same device, but condition is on cpu and x and y are on cuda:0 and cuda:0 respectively
ipdb> dist.topk(5)
*** RuntimeError: Expected condition, x and y to be on the same device, but condition is on cpu and x and y are on cuda:0 and cuda:0 respectively
I'm not sure what the condition is in order to send it to the correct device.
When I try to use
topk
orkmax
on the GPU, the following error occurs:I'm not sure what the condition is in order to send it to the correct device.