So I have a 4d tensor with shape [4,1,128,678]
and I would like to view/reshape it as [4,678,128]
.
I have to do this for multiple tensors where the last shape value 678 is not always know and could be different, so [4,1,128,575]
should also go to [4,575,128]
Any idea on what is the optimal operation to transform the tensor? view/reshape? and how?
Thanks