From the stack trace it looks like the problem is with the outputs no?
Maybe your forward returns Tensors that are not on the right device?
From the stack trace it looks like the problem is with the outputs no?
Maybe your forward returns Tensors that are not on the right device?