Skip to content

Commit

Permalink
Merge pull request #20 from devmotion/fix2
Browse files Browse the repository at this point in the history
Fix method ambiguity
  • Loading branch information
mohamed82008 committed Jan 14, 2020
2 parents 52af507 + f03f2de commit 42288a7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/common.jl
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,4 @@ end
## PDMats ##

PDMats.invquad::PDiagMat, x::Tracker.TrackedVector) = sum(abs2.(x) ./ Σ.diag)
getchol(m::PDMats.AbstractPDMat) = m.chol
getchol(m::PDMats.PDiagMat) = cholesky(Diagonal(m.diag))
getchol(m::PDMats.ScalMat) = cholesky(Diagonal(fill(m.value, m.dim)))
PDMats.invquad::PDMat, x::Tracker.TrackedVector) = sum(abs2, zygote_ldiv.chol.L, x))

0 comments on commit 42288a7

Please sign in to comment.