Skip to content

Commit 3723789

Browse files
committed
signature for conflict
1 parent f9de7b3 commit 3723789

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
@@ -381,7 +381,7 @@ function fit_mle(::Type{<:Dirichlet}, P::AbstractMatrix{Float64},
381381
end
382382

383383
## Differentiation
384-
function ChainRulesCore.frule((_, Δalpha), DT::Union{Type{Dirichlet{T}}, Type{Dirichlet}}, alpha::AbstractVector{T}; check_args = true) where {T}
384+
function ChainRulesCore.frule((_, Δalpha)::Tuple{Any,Any}, DT::Union{Type{Dirichlet{T}}, Type{Dirichlet}}, alpha::AbstractVector{T}; check_args = true) where {T}
385385
d = DT(alpha; check_args=check_args)
386386
Δalpha = ChainRulesCore.unthunk(Δalpha)
387387
∂alpha0 = sum(Δalpha)

0 commit comments

Comments
 (0)