@@ -3,8 +3,8 @@ module VBCholeskyTests
33using Distributions
44using LinearAlgebra
55using Test
6+ using ADTypes: AutoEnzyme, AutoMooncake, AutoMooncakeForward, AutoReverseDiff
67using Bijectors. VectorBijectors
7- import DifferentiationInterface as DI
88using ForwardDiff: ForwardDiff
99using ReverseDiff: ReverseDiff
1010using Mooncake: Mooncake
@@ -13,17 +13,17 @@ using Enzyme: Enzyme, set_runtime_activity, Const, Forward, Reverse
1313# Need runtime activity for some reason.
1414# TODO (penelopeysm): Report upstream
1515const adtypes = [
16- DI . AutoReverseDiff (),
17- DI . AutoReverseDiff (; compile= true ),
18- DI . AutoMooncake (),
19- DI . AutoMooncakeForward (),
20- DI . AutoEnzyme (; mode= set_runtime_activity (Forward), function_annotation= Const),
21- DI . AutoEnzyme (; mode= set_runtime_activity (Reverse), function_annotation= Const),
16+ AutoReverseDiff (),
17+ AutoReverseDiff (; compile= true ),
18+ AutoMooncake (),
19+ AutoMooncakeForward (),
20+ AutoEnzyme (; mode= set_runtime_activity (Forward), function_annotation= Const),
21+ AutoEnzyme (; mode= set_runtime_activity (Reverse), function_annotation= Const),
2222]
2323
2424dists = [
25- # Note: can't test LKJCholesky(1, ...) because its linked vector is length-zero and
26- # DifferentiationInterface trips up with empty vectors.
25+ LKJCholesky (1 , 1.0 , ' U ' ),
26+ LKJCholesky ( 1 , 1.0 , ' L ' ),
2727 LKJCholesky (3 , 1.0 , ' U' ),
2828 LKJCholesky (3 , 1.0 , ' L' ),
2929 LKJCholesky (5 , 1.0 , ' U' ),
0 commit comments