Skip to content

Commit e4ea4fe

Browse files
authored
Fix Turing test failure (#244)
1 parent 58a507a commit e4ea4fe

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Project.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "DistributionsAD"
22
uuid = "ced4e74d-a319-5a8a-b0ac-84af2272839c"
3-
version = "0.6.46"
3+
version = "0.6.47"
44

55
[deps]
66
Adapt = "79e6a3ab-5dfb-504d-930d-738a2a938a0e"

ext/DistributionsADReverseDiffExt.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ function DistributionsAD.symm_turing_chol(x::TrackedArray{V,D}, check, uplo) whe
6262
(factors,info), back = DistributionsAD.symm_turing_chol_back(x_value, check, uplo)
6363
C = LinearAlgebra.Cholesky{eltype(factors), typeof(factors)}(factors, 'U', info)
6464
out = track(C.factors, D, tp)
65-
record!(tp, SpecialInstruction, DistributionsAD.symm_turing_chol, (x, check, uplo), out, (back, issuccess(C)))
65+
record!(tp, SpecialInstruction, DistributionsAD.symm_turing_chol, (x, check, uplo), out, (back, LinearAlgebra.issuccess(C)))
6666
return out, C.info
6767
end
6868
function DistributionsAD.turing_chol(x::TrackedArray{V,D}, check) where {V,D}
@@ -71,7 +71,7 @@ function DistributionsAD.turing_chol(x::TrackedArray{V,D}, check) where {V,D}
7171
(factors,info), back = DistributionsAD.turing_chol_back(x_value, check)
7272
C = LinearAlgebra.Cholesky{eltype(factors), typeof(factors)}(factors, 'U', info)
7373
out = track(C.factors, D, tp)
74-
record!(tp, SpecialInstruction, DistributionsAD.turing_chol, (x, check), out, (back, issuccess(C)))
74+
record!(tp, SpecialInstruction, DistributionsAD.turing_chol, (x, check), out, (back, LinearAlgebra.issuccess(C)))
7575
return out, C.info
7676
end
7777

0 commit comments

Comments
 (0)