I have three tensors of size [5x256x10], [5x256x10],[5x256x10]. When i do concatenation along dim 0 i get [25x256x10] but this does not concatenate along each sample in dim 0. For example, i would to like to concatenate 0th row of tensor 1, 0th row of tensor 2 and 0th row of tensor 3 into [3x256x10] similarly for rest 4 rows leading to [25x256x10] . Any idea ?