I have a tensor and the shape of it is 7x748. However, I want to reshape it to 7x748x1, and I use the torch.view
for example, data.view(7, 748,1), but it does not work. Could anyone give me some advice to reshape the data to (7,748,1)?