Hi,
I am having the same problem:
[...]
    x = torch.cat([x, fill], 1)
TypeError: cat received an invalid combination of arguments - got (list, int), but expected one of:
 * (sequence[torch.FloatTensor] seq)
 * (sequence[torch.FloatTensor] seq, int dim)
      didn't match because some of the arguments have invalid types: (list, int)

After reading this discussion and similar others, I checked type(_) and _.data.type() of x and fill:
x:
torch.FloatTensor
<class 'torch.autograd.variable.Variable'>
torch.Size([10, 1, 40])
fill:
torch.FloatTensor
<class 'torch.autograd.variable.Variable'>
torch.Size([10, 1, 40])

I am not using .cuda(), and both tensors seem to have the same size and type.
This is the code, which causes the problem:
if x.size()[1] < batch_size:
    fill = (x[:, 0, :].contiguous().view(x.size()[0], 1, x.size()[2]))
    for x in range(batch_size-x.size()[1]):
        x = torch.cat([x, fill], 1)

(I want to fill the last batch of an epoch in case the number of elements in the data set % batch_size is not 0)
Any idea what could be the problem here?
Thanks!