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
It seems like that it should be loss_total / ((total_steps - 1) % (eval_frequency*len(train_loader)) + 1)
rather than loss_total / ((total_steps) % (eval_frequency*len(train_loader) + 1))
if I understand correctly.
The text was updated successfully, but these errors were encountered:
Thanks for catching. It should be the second one, but neither of them will cause the divide-by-zero issue since the denominators are both >= 1. Could you check the eval_frequency or len(train_loader) value?
Hi, @MtSomeThree ,
Thank you for replying!
For the code, loss_total / ((total_steps) % (eval_frequency*len(train_loader) + 1))
please note that total_steps % (eval_frequency*len(train_loader) + 1) can be zero, as +1 is in the bracket.
reducingbias/PosteriorBias/baseline_crf_prob.py
Line 695 in ca3376e
It seems like that it should be
loss_total / ((total_steps - 1) % (eval_frequency*len(train_loader)) + 1)
rather than
loss_total / ((total_steps) % (eval_frequency*len(train_loader) + 1))
if I understand correctly.
The text was updated successfully, but these errors were encountered: