File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -231,7 +231,7 @@ function SimpleVarInfo{T}(
231231end
232232
233233# Constructor from `VarInfo`.
234- function SimpleVarInfo (vi:: NTVarInfo , :: Type{D} ) where {names, D}
234+ function SimpleVarInfo (vi:: NTVarInfo , :: Type{D} ) where {D}
235235 values = values_as (vi, D)
236236 return SimpleVarInfo (values, vi. accs)
237237end
Original file line number Diff line number Diff line change 77 @test threadsafe_vi. accs_by_thread isa Vector{<: DynamicPPL.AccumulatorTuple }
88 @test length (threadsafe_vi. accs_by_thread) == Threads. nthreads ()
99 expected_accs = DynamicPPL. AccumulatorTuple (
10- (DynamicPPL. split (acc) for acc in getaccs (vi)). ..
10+ (DynamicPPL. split (acc) for acc in DynamicPPL . getaccs (vi)). ..
1111 )
1212 @test all (accs == expected_accs for accs in threadsafe_vi. accs_by_thread)
1313 end
2828 threadsafe_vi = resetlogp!! (threadsafe_vi)
2929 @test iszero (getlogjoint (threadsafe_vi))
3030 expected_accs = DynamicPPL. AccumulatorTuple (
31- (DynamicPPL. split (acc) for acc in getaccs (threadsafe_vi. varinfo)). ..
31+ (DynamicPPL. split (acc) for acc in DynamicPPL . getaccs (threadsafe_vi. varinfo)). ..
3232 )
3333 @test all (accs == expected_accs for accs in threadsafe_vi. accs_by_thread)
3434
3535 threadsafe_vi = setlogprior!! (threadsafe_vi, 42 )
3636 @test getlogjoint (threadsafe_vi) == 42
3737 expected_accs = DynamicPPL. AccumulatorTuple (
38- (DynamicPPL. split (acc) for acc in getaccs (threadsafe_vi. varinfo)). ..
38+ (DynamicPPL. split (acc) for acc in DynamicPPL . getaccs (threadsafe_vi. varinfo)). ..
3939 )
4040 @test all (accs == expected_accs for accs in threadsafe_vi. accs_by_thread)
4141 end
You can’t perform that action at this time.
0 commit comments