Skip to content

Commit

Permalink
don't use ReverseWithPrimal in gradient
Browse files Browse the repository at this point in the history
  • Loading branch information
mcabbott committed Nov 11, 2024
1 parent 2636454 commit a9424ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/FluxEnzymeExt/FluxEnzymeExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function Flux._enzyme_gradient(f, args::Union{Const, Duplicated}...; zero::Bool=
zero && x isa Duplicated && _make_zero!(x.dval)
_check_mutable(x)
end
Enzyme.autodiff(ReverseWithPrimal, f, Active, args...)
Enzyme.autodiff(Reverse, f, Active, args...)
map(_grad_or_nothing, args)

Check warning on line 24 in ext/FluxEnzymeExt/FluxEnzymeExt.jl

View check run for this annotation

Codecov / codecov/patch

ext/FluxEnzymeExt/FluxEnzymeExt.jl#L18-L24

Added lines #L18 - L24 were not covered by tests
end

Expand Down

0 comments on commit a9424ab

Please sign in to comment.