Why torch.cat() makes a cuda Variable to a non-cuda Variable?
I am trying to run a code where I am getting error in the following code snippet. <SCODE>combined_representation = torch.cat([self.encoder_hidden_states1[last_time_step_sent1][0],
                                 self.encoder_hidden_states2[last_time_step_sent2][0]], 1)
if self.config.cuda:
     combined_representation = combined_representation.cuda()

print(combined_representation.size()) # prints torch.Size([16, 600])
scores = self.linear(combined_representation)
<ECODE>
wasiahmad
smth