Skip to content

Commit 02c24ef

Browse files
committed
Fix BNN doc to work with Mooncake
1 parent 28fcc61 commit 02c24ef

File tree

1 file changed

+1
-1
lines changed
  • tutorials/03-bayesian-neural-network

1 file changed

+1
-1
lines changed

tutorials/03-bayesian-neural-network/index.qmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ const nn = StatefulLuxLayer{true}(nn_initial, nothing, st)
189189
parameters ~ MvNormal(zeros(nparameters), Diagonal(abs2.(sigma .* ones(nparameters))))
190190
191191
# Forward NN to make predictions
192-
preds = Lux.apply(nn, xs, vector_to_parameters(parameters, ps))
192+
preds = Lux.apply(nn, xs, f32(vector_to_parameters(parameters, ps)))
193193
194194
# Observe each prediction.
195195
for i in eachindex(ts)

0 commit comments

Comments
 (0)