File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ using Test
6666 end
6767end
6868
69- @testset " ParamsWithStats from FastLDF " begin
69+ @testset " ParamsWithStats from LogDensityFunction " begin
7070 @testset " $(m. f) " for m in DynamicPPL. TestUtils. DEMO_MODELS
7171 unlinked_vi = VarInfo (m)
7272 @testset " $islinked " for islinked in (false , true )
7777 end
7878 params = [x for x in vi[:]]
7979
80- # Get the ParamsWithStats using FastLDF
81- fldf = DynamicPPL. Experimental . FastLDF (m, getlogjoint, vi)
82- ps = ParamsWithStats (params, fldf )
80+ # Get the ParamsWithStats using LogDensityFunction
81+ ldf = DynamicPPL. LogDensityFunction (m, getlogjoint, vi)
82+ ps = ParamsWithStats (params, ldf )
8383
8484 # Check that length of parameters is as expected
8585 @test length (ps. params) == length (keys (vi))
Original file line number Diff line number Diff line change 132132 @testset for model in
133133 (f (), submodel_inner () | (; s= 0.0 ), submodel_outer (submodel_inner ()))
134134 vi = VarInfo (model)
135- fldf = DynamicPPL. LogDensityFunction (model, DynamicPPL. getlogjoint_internal, vi)
135+ ldf = DynamicPPL. LogDensityFunction (model, DynamicPPL. getlogjoint_internal, vi)
136136 x = vi[:]
137- bench = median (@be LogDensityProblems. logdensity (fldf , x))
137+ bench = median (@be LogDensityProblems. logdensity (ldf , x))
138138 @test iszero (bench. allocs)
139139 end
140140 end
You can’t perform that action at this time.
0 commit comments