Skip to content

Commit

Permalink
Fix Zygote pullback depwarning (#657)
Browse files Browse the repository at this point in the history
  • Loading branch information
mhauru authored Sep 13, 2024
1 parent 6ef6a2e commit 24a7380
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/DynamicPPLZygoteRulesExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ ZygoteRules.@adjoint function DynamicPPL.dot_observe(
DynamicPPL.increment_num_produce!(vi)
return sum(map(Distributions.loglikelihood, dists, value)), vi
end
return ZygoteRules.pullback(__context__, dot_observe_fallback, spl, dists, value, vi)
return ZygoteRules.pullback(dot_observe_fallback, __context__, spl, dists, value, vi)
end

end # module

0 comments on commit 24a7380

Please sign in to comment.