Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wsmoses committed Dec 2, 2024
1 parent 07db00b commit 7081f3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sugar.jl
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ grad = gradient(ReverseWithPrimal, mul, [2.0], Const([3.0]))
enz_args = Union{Expr,Symbol}[]
resargs = Union{Expr,Symbol[]
for (i, (arg, act, state, genty)) in enumerate(zip(rargs, acts, states, gentys))
shad = Symbol("shad_$idx")
shad = Symbol("shad_$i")
if genty <: Enzyme.Const
push!(enz_args, arg)
push!(resargs, :nothing)
Expand Down

0 comments on commit 7081f3f

Please sign in to comment.