Hello,
Global average pooling takes your 3d tensor of shape (16,25,32) into a tensor of shape (1,1,32), assuming 32 corresponds to the channel dimension. To produce an output ot size 10, you have to reshape this to a 1D vector of size 32 and apply a linear layer.