Skip to content

Commit

Permalink
Remove type parameters (#252)
Browse files Browse the repository at this point in the history
They're unneeded, and breaking on Julia master:
JuliaLang/julia@feb2988
  • Loading branch information
chriselrod authored Jul 15, 2023
1 parent 2aef975 commit 18d416e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ext/DistributionsADTrackerExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,12 @@ for f = [:hcat, :vcat]
end

function Base.copy(
A::TrackedArray{T, 2, <:LinearAlgebra.Adjoint{T, <:LinearAlgebra.AbstractTriangular{T, <:AbstractMatrix{T}}}},
A::TrackedArray{T, 2, <:LinearAlgebra.Adjoint{T, <:LinearAlgebra.AbstractTriangular{T}}},
) where {T <: Real}
return track(copy, A)
end
@grad function Base.copy(
A::TrackedArray{T, 2, <:LinearAlgebra.Adjoint{T, <:LinearAlgebra.AbstractTriangular{T, <:AbstractMatrix{T}}}},
A::TrackedArray{T, 2, <:LinearAlgebra.Adjoint{T, <:LinearAlgebra.AbstractTriangular{T}}},
) where {T <: Real}
return copy(data(A)), ∇ -> (copy(∇),)
end
Expand Down Expand Up @@ -588,4 +588,4 @@ Distributions.InverseWishart(df::Real, S::TrackedMatrix) = TuringInverseWishart(
Distributions.InverseWishart(df::TrackedReal, S::TrackedMatrix) = TuringInverseWishart(df, S)
Distributions.InverseWishart(df::TrackedReal, S::PDMats.AbstractPDMat{<:TrackedReal}) = TuringInverseWishart(df, S)

end # module
end # module

0 comments on commit 18d416e

Please sign in to comment.