In tensorflow you can do something like this
third_tensor= tf.concat(0, [first_tensor, second_tensor])

so if first_tensor and second_tensor would be of size [5, 32,32], first dimension would be batch size, the tensor third_tensor would be of size [10, 32, 32], containing the above two, stacked on top of each other.
How can I do this with torch variables?  Or ar least with torch tensors?