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

Update to Turing 0.12 #159

Merged
merged 1 commit into from
May 9, 2020
Merged

Update to Turing 0.12 #159

merged 1 commit into from
May 9, 2020

Conversation

devmotion
Copy link
Member

This is an alternative to #158 that passes tests locally.

@@ -44,7 +44,8 @@ function turing_inference(
failure = size(sol, 2) < length(_saveat)

if failure
@logpdf() = T(0) * sum(x) + T(-Inf)
S = typeof(Turing.Inference.getlogp(_varinfo))
Turing.Inference.acclogp!(_varinfo, S(-Inf))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the other parts were just there so the output type would be stable.

@ChrisRackauckas ChrisRackauckas merged commit 961f7be into SciML:master May 9, 2020
@devmotion devmotion deleted the turing branch May 9, 2020 10:43
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

Successfully merging this pull request may close these issues.

None yet

2 participants