Skip to content

Commit 2fd5f6f

Browse files
committed
keep solution, testDERel on approxConv
1 parent 5b8e3da commit 2fd5f6f

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

IncrementalInference/test/testDERelative.jl

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,6 @@ doautoinit!(fg, :x0)
4646

4747
prev = :x0
4848

49-
# chnl = Channel(100)
50-
5149
for i in 1:3
5250

5351
nextSym = Symbol("x$i")
@@ -126,14 +124,18 @@ meas = sampleFactor(fg, :x0x1f1, 10)
126124

127125

128126
## do all forward solutions
127+
chnl = Channel(100)
128+
129129

130130
pts = sampleFactor(fg, :x0f1, 100)
131131

132132
initVariable!(fg, :x0, pts)
133-
pts_ = approxConv(fg, :x0x1f1, :x1)
133+
pts_ = approxConv(fg, :x0x1f1, :x1; keepCalcFactor=chnl)
134134
@cast pts[i,j] := pts_[j][i]
135135
@test 0.3 < Statistics.mean(pts) < 0.4
136136

137+
ccf = take!(chnl)
138+
@test 50 < length(ccf.factor.keepSolution)
137139

138140
## check that the reverse solve also works
139141

0 commit comments

Comments
 (0)