Skip to content

Commit dbc07b7

Browse files
committed
Don't use closure for enzyme
1 parent 73113c7 commit dbc07b7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/logdensityfunction.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,7 @@ closure approach will be used. By default, this function returns `false`, i.e.
350350
the constant approach will be used.
351351
"""
352352
use_closure(::ADTypes.AbstractADType) = true
353+
use_closure(::ADTypes.AutoEnzyme) = false
353354

354355
"""
355356
getmodel(f)

0 commit comments

Comments
 (0)