Skip to content

Commit

Permalink
3rd round of trying to make the format doggy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
alyst committed Aug 2, 2022
1 parent b4fcf7e commit ebc634b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions test/context_implementations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,15 @@
context,
NoDist(Product(fill(Uniform(-20, 20), 5))),
@varname(x),
varinfo
varinfo,
)
x = varinfo[@varname(x)]
@test x isa Vector{<:Real}
@test length(x) == 5
return (nothing,
DynamicPPL.acclogp!!(varinfo, sum(logpdf.(Ref(Normal(0, 1)), x))))
return (
nothing,
DynamicPPL.acclogp!!(varinfo, sum(logpdf.(Ref(Normal(0, 1)), x))),
)
end
vi_expl = VarInfo(expl_model)
@test isfinite(logjoint(expl_model, vi_expl))
Expand Down

0 comments on commit ebc634b

Please sign in to comment.