Hi albanD,
I’m new to PyTorch. After I printed out s_input_var and t_input_var it seems that they are both on the same GPU with device='cuda:0'. Do they need to be on different GPUs? They are calculated in the following way:
s_input, s_target = source_iter.next()
t_input, _ = target_iter.next()
s_target = s_target.cuda(async=True)
s_input_var = torch.autograd.Variable(s_input).cuda()
t_input_var = torch.autograd.Variable(t_input).cuda()
s_target_var = torch.autograd.Variable(s_target)

Thanks very much!