How to plot latent space of my VAE?

I have a VAE . From my model i got the output of encoder , and it is a tensor like this [32,192,4,4] (32 is batchsize(the last 32 imgs from dataset), 192 is nchannels after conv, 4 and 4 pixels dim).
How i can plot using PCA or TSNE ?
Help me please