Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When I test my own model, some datasets work fine, but the univ dataset reports errors. The specific error message is as follows. #68

Open
Jasmine302 opened this issue Jun 15, 2023 · 1 comment

Comments

@Jasmine302
Copy link

Traceback (most recent call last):
File "test.py", line 195, in
ad,fd,raw_data_dic_= test()
File "test.py", line 69, in test
mvnormal = torchdist.MultivariateNormal(mean,cov)
File "/home/jnu/anaconda3/envs/xxq/lib/python3.7/site-packages/torch/distributions/multivariate_normal.py", line 146, in init
super(MultivariateNormal, self).init(batch_shape, event_shape, validate_args=validate_args)
File "/home/jnu/anaconda3/envs/xxq/lib/python3.7/site-packages/torch/distributions/distribution.py", line 56, in init
f"Expected parameter {param} "
ValueError: Expected parameter covariance_matrix (Tensor of shape (12, 57, 2, 2)) of distribution MultivariateNormal(loc: torch.Size([12, 57, 2]), covariance_matrix: torch.Size([12, 57, 2, 2])) to satisfy the constraint PositiveDefinite(), but found invalid values:
tensor([[[[ 1.2511e-11, 2.6965e-10],
[ 2.6965e-10, 5.8116e-09]],

@abduallahmohamed
Copy link
Owner

abduallahmohamed commented Jun 16, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants