Hi. I’d like to concatenate two Variables, which are each an output of a nn module.
Say I have Variables v1 and v2.
I could use torch.cat([v1, v2]) in my python interactive mode, but when I try to write a code and run it, it gives error:

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

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


How should I concatenate two Variables?
(I’d like to concat and feed it to another fully connected layer)