Skip to content

Commit

Permalink
Fix Turing test failure (#244)
Browse files Browse the repository at this point in the history
  • Loading branch information
devmotion authored May 16, 2023
1 parent 58a507a commit e4ea4fe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "DistributionsAD"
uuid = "ced4e74d-a319-5a8a-b0ac-84af2272839c"
version = "0.6.46"
version = "0.6.47"

[deps]
Adapt = "79e6a3ab-5dfb-504d-930d-738a2a938a0e"
Expand Down
4 changes: 2 additions & 2 deletions ext/DistributionsADReverseDiffExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ function DistributionsAD.symm_turing_chol(x::TrackedArray{V,D}, check, uplo) whe
(factors,info), back = DistributionsAD.symm_turing_chol_back(x_value, check, uplo)
C = LinearAlgebra.Cholesky{eltype(factors), typeof(factors)}(factors, 'U', info)
out = track(C.factors, D, tp)
record!(tp, SpecialInstruction, DistributionsAD.symm_turing_chol, (x, check, uplo), out, (back, issuccess(C)))
record!(tp, SpecialInstruction, DistributionsAD.symm_turing_chol, (x, check, uplo), out, (back, LinearAlgebra.issuccess(C)))
return out, C.info
end
function DistributionsAD.turing_chol(x::TrackedArray{V,D}, check) where {V,D}
Expand All @@ -71,7 +71,7 @@ function DistributionsAD.turing_chol(x::TrackedArray{V,D}, check) where {V,D}
(factors,info), back = DistributionsAD.turing_chol_back(x_value, check)
C = LinearAlgebra.Cholesky{eltype(factors), typeof(factors)}(factors, 'U', info)
out = track(C.factors, D, tp)
record!(tp, SpecialInstruction, DistributionsAD.turing_chol, (x, check), out, (back, issuccess(C)))
record!(tp, SpecialInstruction, DistributionsAD.turing_chol, (x, check), out, (back, LinearAlgebra.issuccess(C)))
return out, C.info
end

Expand Down

2 comments on commit e4ea4fe

@devmotion
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/83679

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.6.47 -m "<description of version>" e4ea4feef2fcc9b64fb435f027f39db776b494d7
git push origin v0.6.47

Please sign in to comment.