Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
ToucheSir authored Jan 8, 2024
1 parent 4638239 commit 49592f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/base.jl
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ end
function _pullback(cx::AContext, ::typeof(push!), s::IdSet, @nospecialize(x))
res = push!(s, x)
function idset_push!_pullback(_)
Δ = pop!(grad_mut(cx, d), x, nothing)
Δ = pop!(grad_mut(cx, s), x, nothing)
(nothing, Δ, nothing)
end
return res, idset_push!_pullback
Expand Down

0 comments on commit 49592f7

Please sign in to comment.