Skip to content

Commit 80db9e2

Browse files
committed
Update comment pointing to closure benchmarks
1 parent ff7f8a2 commit 80db9e2

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/logdensityfunction.jl

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -297,17 +297,14 @@ There are two ways of dealing with this:
297297
298298
The relative performance of the two approaches, however, depends on the AD
299299
backend used. Some benchmarks are provided here:
300-
https://github.com/TuringLang/DynamicPPL.jl/pull/806#issuecomment-2658061480
300+
https://github.com/TuringLang/DynamicPPL.jl/issues/946#issuecomment-2931604829
301301
302302
This function is used to determine whether a given AD backend should use a
303303
closure or a constant. If `use_closure(adtype)` returns `true`, then the
304304
closure approach will be used. By default, this function returns `false`, i.e.
305305
the constant approach will be used.
306306
"""
307-
use_closure(::ADTypes.AbstractADType) = false
308-
use_closure(::ADTypes.AutoForwardDiff) = false
309-
use_closure(::ADTypes.AutoMooncake) = false
310-
use_closure(::ADTypes.AutoReverseDiff) = true
307+
use_closure(::ADTypes.AbstractADType) = true
311308

312309
"""
313310
getmodel(f)

0 commit comments

Comments
 (0)