I would like to change an array of size (1,4,4,4,4) to (1,16,16).
view size is not compatible with input tensor’s size and stride (at least one dimension spans across two contiguous subspaces). Use .reshape (…) instead.
Until now, this error only appeared when the size was specified incorrectly in the view
I get a mysterious error (1, 4 * 4, 4 * 4) Then why is it impossible?
4 * 4 = 16 ??? Why do you use reshape (…)?
I forgot to put the cause code
inp.size = (1,16,16)
s = inp.view (1,4,4,4,4) .permute (0,1,3,2,4) .view (1,16,16)