Skip to content

Commit 48dfaf5

Browse files
committed
Fix test again
1 parent 7f1fbe2 commit 48dfaf5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/transform.jl

+4-1
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,10 @@ end
242242
single_sample_tests(dist)
243243
x = rand(dist)
244244
J = ForwardDiff.jacobian(z -> link(dist, Cholesky(z, x.uplo, x.info)), x.UL)
245-
J = J[:, [2, 3, 5]]
245+
# Remove columns of Jacobian that are all zero. Due to changes in ForwardDiff
246+
# between 0.10 and 1.0, this is necessary as the exact indices will differ
247+
inds = filter(i -> !all(iszero, J[:, i]), 1:size(J, 2))
248+
J = J[:, inds]
246249
@test logpdf(dist, x) - _logabsdet(J) logpdf_with_trans(dist, x, true)
247250
end
248251
end

0 commit comments

Comments
 (0)