-
Notifications
You must be signed in to change notification settings - Fork 155
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
Incompatibility of SMCABC log_prob with PyTorch 1.8 #504
Comments
Hi there, thanks for creating this issue! What is your version of Best |
Thanks for the quick response! Just upgraded to ensure that I'm on |
Hey! I think this is indeed a bug. The perturbation can move particles outside of the prior support, which cause the new PyTorch to raise a |
Ah cool! Thanks for the quick fix. I'll close #505 then :) |
The fix is in |
Seems to work now :) Thank you! |
Hello!
I was toying around with
SMABC
viasbibm
and came across an exception while trying to run:which spits out the following (truncated to relevant bits):
I believe this comes down to a line in the
SMCABC
checking whether perturbed parameters are within the prior:https://github.com/mackelab/sbi/blob/340424ecaacc5c375a4818927f8a3e2742ceb979/sbi/inference/abc/smcabc.py#L499
The problem is that PyTorch 1.8 validates against the support of the distribution before taking a
log_prob
.This might be addressed by changing the above line to
However, this presupposes that the
support.check()
method exists, which might not be the case for user-defined priors. So a more conservative change might be:I'll go ahead and raise the last change in a PR for the sake of taking a next step, but obviously I'm happy to defer to what the maintainers think is best!
The text was updated successfully, but these errors were encountered: