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

Commit d11da6c

Browse files
Update ext/OptimizationEnzymeExt.jl
1 parent a248217 commit d11da6c

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
@@ -103,7 +103,7 @@ function OptimizationBase.instantiate_function(f::OptimizationFunction{true}, x,
103103
set_runtime_activity2(Enzyme.Forward, adtype.mode)
104104
end
105105

106-
func_annot = function_annotation(adtype.function_annotation)
106+
func_annot = function_annotation(adtype)
107107

108108
if g == true && f.grad === nothing
109109
function grad(res, θ, p = p)

0 commit comments

Comments
 (0)