Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wsmoses committed Sep 5, 2024
1 parent 10426be commit c8a5c6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/enzyme_ad/jax/primitives.py
Original file line number Diff line number Diff line change
Expand Up @@ -1621,7 +1621,7 @@ def zero_like(i, arg):
lowered_func = lower(jitres, avals_in)
kept = lowered_func.compile()._executable._kept_var_idx
args_flat = [
arg if i in kept else zero_like(arg)
arg if i in kept else zero_like(i, arg)
for (i, arg) in enumerate(args_flat)
]

Expand Down

0 comments on commit c8a5c6f

Please sign in to comment.