Skip to content

Commit 9575375

Browse files
authored
More fixes for DynamicPPL 0.35 (#2494)
* Remove test/dynamicppl/compiler.jl * Remove old regression tests * Remove vdemo2 * Fix last test
1 parent 2adec09 commit 9575375

File tree

4 files changed

+1
-407
lines changed

4 files changed

+1
-407
lines changed

test/dynamicppl/compiler.jl

Lines changed: 0 additions & 371 deletions
This file was deleted.

test/mcmc/Inference.jl

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -440,15 +440,6 @@ using Turing
440440

441441
res = sample(StableRNG(seed), vdemo1b(x), alg, 10)
442442

443-
@model function vdemo2(x)
444-
μ ~ MvNormal(zeros(size(x, 1)), I)
445-
@. x ~ $(MvNormal(μ, I))
446-
end
447-
448-
D = 2
449-
alg = HMC(0.01, 5; adtype=adbackend)
450-
res = sample(StableRNG(seed), vdemo2(randn(D, 100)), alg, 10)
451-
452443
# Vector assumptions
453444
N = 10
454445
alg = HMC(0.2, 4; adtype=adbackend)
@@ -492,7 +483,7 @@ using Turing
492483
N = 3
493484
@model function vdemo7()
494485
x = Array{Real}(undef, N, N)
495-
@. x ~ [InverseGamma(2, 3) for i in 1:N]
486+
x ~ filldist(InverseGamma(2, 3), N, N)
496487
end
497488

498489
sample(StableRNG(seed), vdemo7(), alg, 10)

0 commit comments

Comments
 (0)