My Linear layers(encoder) are as follows
1st layer(265*16*16,128*22*22)
2nd layer(128*22*22,256*22*22)
3rd layer(256*22*22,256*32*32)

i have to further pass  output of 3rd layer to decoder layer for making a model for semantic segmentation.