Skip to content
This repository was archived by the owner on Aug 25, 2025. It is now read-only.

Commit 1607b88

Browse files
authored
Update OptimizationEnzymeExt.jl
1 parent 75fc2a3 commit 1607b88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/OptimizationEnzymeExt.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ function OptimizationBase.instantiate_function(f::OptimizationFunction{true}, x,
104104
func_annot = if adtype.mode isa Nothing
105105
Nothing
106106
else
107-
adtype.mode.function_annotation
107+
adtype.function_annotation
108108
end
109109

110110
if g == true && f.grad === nothing

0 commit comments

Comments
 (0)