Skip to content

Commit

Permalink
oops unswap ignore_nums
Browse files Browse the repository at this point in the history
  • Loading branch information
rtjoa committed Apr 22, 2024
1 parent 0fe076c commit 2644c7d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/qc/benchmarks/benchmarks.jl
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,9 @@ function produce_loss(rs::RunState, m::SamplingEntropyLossMgr, epoch::Integer)
loss, actual_loss = sum(
begin
lpr_eq = if m.p.ignore_nums
LogPr(prob_equals(m.val,sample))
else
LogPr(eq_except_numbers(m.val, sample))
else
LogPr(prob_equals(m.val,sample))
end
lpr_eq_expanded = Dice.expand_logprs(l, lpr_eq)
if m.consider(sample)
Expand Down

0 comments on commit 2644c7d

Please sign in to comment.