Solved by Shisho_Sama in post #2 
              
              
                OK, Thank God! I finally got the hang of it! here is what I ended up doing ! 
# display a 2D manifold of the digits
embeddingsize = model.embedding_size
# figure with 20x20 digits
n = 20  
digit_size = 28

z1 = torch.linspace(-2, 2, n)
z2 = torch.linspace(-2, 2, n)

z_grid = np.dstack(np.meshgrid(z1…