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:
297
297
298
298
The relative performance of the two approaches, however, depends on the AD
299
299
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
301
301
302
302
This function is used to determine whether a given AD backend should use a
303
303
closure or a constant. If `use_closure(adtype)` returns `true`, then the
304
304
closure approach will be used. By default, this function returns `false`, i.e.
305
305
the constant approach will be used.
306
306
"""
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
311
308
312
309
"""
313
310
getmodel(f)
You can’t perform that action at this time.
0 commit comments