Skip to content

Commit 7515e86

Browse files
Update src/multivariate/dirichlet.jl
Co-authored-by: David Widmann <devmotion@users.noreply.github.com>
1 parent 475a934 commit 7515e86

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
@@ -424,7 +424,7 @@ function ChainRulesCore.rrule(::typeof(_logpdf), d::Dirichlet, x::AbstractVector
424424
∂alpha .= NaN
425425
∂l = oftype(∂l, NaN)
426426
∂x .= NaN
427-
∂alpha0 = NaN
427+
∂alpha0 = oftype(∂alpha0, NaN)
428428
end
429429
backing = (alpha = ∂alpha, alpha0 = ∂alpha0, lmnB=∂l)
430430
∂d = ChainRulesCore.Tangent{typeof(d), typeof(backing)}(backing)

0 commit comments

Comments
 (0)