Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Commit

Permalink
fix: forward enzyme rules
Browse files Browse the repository at this point in the history
  • Loading branch information
avik-pal committed Sep 22, 2024
1 parent e977188 commit 8459414
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -252,8 +252,7 @@ macro enzyme_alternative(f₁, f₂)

function EnzymeRules.forward(cfg::EnzymeRules.FwdConfig,
::EnzymeCore.Const{typeof($(f₁))}, ::Type{RT}, args...) where {RT}
EnzymeCore.autodiff(cfg, EnzymeCore.Forward, EnzymeCore.Const($(f₂)), RT,
args...)
EnzymeCore.autodiff(EnzymeCore.Forward, EnzymeCore.Const($(f₂)), RT, args...)
return
end
end)
Expand Down

0 comments on commit 8459414

Please sign in to comment.