concatenated_input = Variable(torch.cat([input.data.view(-1,3*32*32), condition.data], 1))

TypeError: cat received an invalid combination of arguments - got (list, int), but expected one of:

(sequence[torch.cuda.FloatTensor] seq)
(sequence[torch.cuda.FloatTensor] seq, int dim)
didn’t match because some of the arguments have invalid types: (list, int)


This works if they are simply FloatTensors and not cuda.FloatTensors. Is this expected? Should i use a different function to concatenate cuda tensors?
Thanks a lot!