You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@modelfunctiontest_model(x, y, mx, vx)
for i in1:3
x[i] ~NormalMeanVariance(mx, vx)
end
my ~NormalMeanVariance(0, 1)
y ~NormalMeanVariance(my, 1.0)
end
d = [(x =rand(3),y =rand()) for i in1:10]
datastream =from(d) |>map(NamedTuple{(:x, :y), Tuple{Vector{Float64}, Float64}}, (d) -> d)
foo(x) =1.0
autoupdates =@autoupdatesbegin
mx =foo(q(my))
vx =foo(q(my))
end
If we add a vector/tensor of inputs in streaming inference and create a (data)variable for every entry, we get the following error message:
MWE:
The following code runs and gives a result:
When we run streaming inference the error message is being thrown:
The following fixes this, but might not be the most rigorous fix:
The text was updated successfully, but these errors were encountered: