Is the free energy principle related to VQ-VAE?