Skip to content

Commit 76cc96a

Browse files
committed
conflict
2 parents 1a3fdd9 + 7515e86 commit 76cc96a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/multivariate/dirichlet.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ function ChainRulesCore.rrule(::typeof(_logpdf), d::Dirichlet, x::AbstractVector
418418
function Dirichlet_logpdf_pullback(dy)
419419
∂alpha = xlogy.(dy, x)
420420
∂l = -dy
421-
∂x = dy * (d.alpha .-1) ./ x
421+
∂x = dy .* (d.alpha .-1) ./ x
422422
∂alpha0 = sum(∂alpha)
423423
if !isfinite(y)
424424
∂alpha = oftype(eltype(∂alpha), NaN) * ∂alpha

0 commit comments

Comments
 (0)