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 Apr 2, 2023
1 parent 490257a commit 71f3304
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 71f3304

Please sign in to comment.