Skip to content

Commit

Permalink
Missed grad_mut
Browse files Browse the repository at this point in the history
  • Loading branch information
ToucheSir authored Jan 8, 2024
1 parent 49592f7 commit ef1b2da
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib/base.jl
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ end
end

# IdSet (needed for nested AD with implicit params)

grad_mut(::IdSet) = IdSet()

function _pullback(cx::AContext, ::typeof(push!), s::IdSet, @nospecialize(x))
res = push!(s, x)
function idset_push!_pullback(_)
Expand Down

0 comments on commit ef1b2da

Please sign in to comment.