Hi,
I think you have some extra code between the model that you give (where the last layer is a linear that outputs 4 features so batch x 4) and the size you print (which are batch x 2 x 2)
You should make sure that this extra code has no part that is hardcoded that ignore part of the input.