Skip to content

Commit 31cc13b

Browse files
Update test/logdensityfunction.jl
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 2a88f94 commit 31cc13b

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

ext/DynamicPPLMooncakeExt.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ end
9696

9797
@setup_workload begin
9898
@compile_workload begin
99-
for adtype in (AutoMooncake(), AutoMooncakeForward())
99+
for adtype in (AutoMooncake(),)
100100
for dist in (Normal(), InverseGamma(2, 3), Beta(2, 2))
101101
@model f() = x ~ dist
102102
ldf = LogDensityFunction(f(), getlogjoint_internal, LinkAll(); adtype)

test/logdensityfunction.jl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -177,12 +177,12 @@ end
177177
struct ErrorAccumulatorException <: Exception end
178178
struct ErrorAccumulator <: DynamicPPL.AbstractAccumulator end
179179
DynamicPPL.accumulator_name(::ErrorAccumulator) = :ERROR
180-
DynamicPPL.accumulate_assume!!(::ErrorAccumulator, ::Any, ::Any, ::Any, ::VarName, ::Distribution, ::Any) = throw(
181-
ErrorAccumulatorException()
182-
)
183-
DynamicPPL.accumulate_observe!!(::ErrorAccumulator, ::Distribution, ::Any, ::Union{VarName,Nothing}, ::Any) = throw(
184-
ErrorAccumulatorException()
185-
)
180+
DynamicPPL.accumulate_assume!!(
181+
::ErrorAccumulator, ::Any, ::Any, ::Any, ::VarName, ::Distribution, ::Any
182+
) = throw(ErrorAccumulatorException())
183+
DynamicPPL.accumulate_observe!!(
184+
::ErrorAccumulator, ::Distribution, ::Any, ::Union{VarName,Nothing}, ::Any
185+
) = throw(ErrorAccumulatorException())
186186
DynamicPPL.reset(ea::ErrorAccumulator) = ea
187187
Base.copy(ea::ErrorAccumulator) = ea
188188
# Construct an LDF

0 commit comments

Comments
 (0)