Solved by albanD in post #6 
              
              
                Didn’t you just said that you removed the encoder? So you removed the unpooling layer no? 
You can see examples of this reshaping in any cnn example, this one for example.