Closed
Description
In Enzyme 0.13 runtime activity is now enabled in the ReverseMode
type explicitly. For instance with ADtypes it would be done with
OptimizationFunction(f, AutoEnzyme(;mode=set_runtime_activity(Reverse)))
However, this isn't being respected in OptimizationEnzymeExt
where Reverse
and Forward
are hardcoded.
For example
OptimizationBase.jl/ext/OptimizationEnzymeExt.jl
Lines 98 to 113 in 1ebca6f
forces Enzyme.Reverse
regardless of the passed mode.