Expected parameter covariance_matrix (Tensor of shape (4, 4)) of distribution MultivariateNormal

#19
by galazzo - opened

Hi,

With simple cut and paste of the provided demo code I get the following error:

Expected parameter covariance_matrix (Tensor of shape (4, 4)) of distribution MultivariateNormal(loc: torch.Size([4]), covariance_matrix: torch.Size([4, 4])) to satisfy the constraint PositiveDefinite(), but found invalid values:
tensor([[ 1.0000, -0.3333, -0.3333, -0.3333],
[-0.3333, 1.0000, -0.3333, -0.3333],
[-0.3333, -0.3333, 1.0000, -0.3333],
[-0.3333, -0.3333, -0.3333, 1.0000]])

galazzo changed discussion title from Loading takes endless time to Expected parameter covariance_matrix (Tensor of shape (4, 4)) of distribution MultivariateNormal

Please refer to https://github.com/jy0205/Pyramid-Flow/issues/53 for the solution.

the same error for 2.4.1+cu121, 3.8.10 . I saw the issue. I'll try reinstall torch

Sign up or log in to comment