Skip to content

Commit 4fc7b76

Browse files
committed
added check_tilde_rhs for Sampleable
1 parent 933e4ed commit 4fc7b76

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/compiler.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ end
179179
check_tilde_rhs(x::Distribution) = x
180180
check_tilde_rhs(x::AbstractArray{<:Distribution}) = x
181181
check_tilde_rhs(x::ReturnedModelWrapper) = x
182+
check_tilde_rhs(x::Sampleable) = Sampleable(check_tilde_rhs(x.model))
182183

183184
"""
184185
unwrap_right_vn(right, vn)

0 commit comments

Comments
 (0)