ndim is 3, as is self.latent_dim
when the inner torch.mean is executed with dim = 1, it outputs the error
IndexError: Dimension out of range (expected to be in range of [-1, 0], but got 1)

if it is 0, it’s all fine. my guess is that there is only 1 dimension (dim = 0) since the latent tensor is 1x3. Am I correct?