Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
devmotion committed Jan 16, 2020
1 parent 3247b36 commit d565590
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/inference/Inference.jl
Original file line number Diff line number Diff line change
Expand Up @@ -696,7 +696,7 @@ function dot_assume(
var::AbstractMatrix,
vi::VarInfo,
)
@assert dim(dist) == size(var, 1)
@assert length(dist) == size(var, 1)
r = get_and_set_val!(vi, vns, dist, spl)
lp = sum(logpdf_with_trans(dist, r, istrans(vi, vns[1])))
var .= r
Expand Down
2 changes: 1 addition & 1 deletion src/inference/hmc.jl
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ function dot_assume(
var::AbstractMatrix,
vi::VarInfo,
)
@assert dim(dist) == size(var, 1)
@assert length(dist) == size(var, 1)
updategid!.(Ref(vi), vns, Ref(spl))
r = vi[vns]
var .= r
Expand Down

0 comments on commit d565590

Please sign in to comment.