You cannot resize or view this tensor using these shapes, as the second one would have more elements.
If you would like to repeat the elements of the first tensor m times, you could use tensor.unsqueeze(0).repeat(1, m) or .extend(-1, m).