Skip to content

Commit

Permalink
make decode example print less output
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoct committed Jul 2, 2019
1 parent 6109388 commit 7ad9225
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/decode/run.jl
Expand Up @@ -132,10 +132,10 @@ function do_inference(encoded_text::AbstractString, num_iter::Int)

# do MCMC
for iter=1:num_iter
println("iter: $iter")

# print state
if (iter - 1) % 1 == 0
if (iter - 1) % 100 == 1
println("iter: $iter")
retval = get_retval(trace)
choices = get_choices(trace)
@assert length(retval) == length(alphas)
Expand Down

0 comments on commit 7ad9225

Please sign in to comment.