Skip to content

Commit d3f5dd0

Browse files
committed
Enzyme
1 parent 8cfc501 commit d3f5dd0

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • DifferentiationInterface/ext/DifferentiationInterfaceEnzymeExt

DifferentiationInterface/ext/DifferentiationInterfaceEnzymeExt/utils.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@ force_annotation(f::F) where {F} = Const(f)
5353
return Const(DI.unwrap(c))
5454
end
5555

56-
@inline function _translate(backend::AutoEnzyme, ::Mode, ::Val{B}, c::DI.Cache) where {B}
56+
@inline function _translate(
57+
backend::AutoEnzyme, ::Mode, ::Val{B}, c::Union{DI.Cache,DI.PrepContext}
58+
) where {B}
5759
if B == 1
5860
return Duplicated(DI.unwrap(c), make_zero(DI.unwrap(c)))
5961
else

0 commit comments

Comments
 (0)