File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -297,17 +297,14 @@ There are two ways of dealing with this:
297297
298298The relative performance of the two approaches, however, depends on the AD
299299backend 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
302302This function is used to determine whether a given AD backend should use a
303303closure or a constant. If `use_closure(adtype)` returns `true`, then the
304304closure approach will be used. By default, this function returns `false`, i.e.
305305the 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)
You can’t perform that action at this time.
0 commit comments